2024-04-23 13:21:26 +00:00
|
|
|
+++
|
|
|
|
date = "2019-02-22"
|
|
|
|
tags = ["github"]
|
|
|
|
title = "github.dev"
|
|
|
|
slug = "github"
|
|
|
|
+++
|
|
|
|
|
|
|
|
googleから取得できるdomainの.devで、github.devがgithubによって速攻で取得され、github pagesの宣伝に使われてたので、とりあえずpreviewしてみた。
|
|
|
|
|
|
|
|
https://github.dev
|
|
|
|
|
|
|
|
source : https://github.com/github/personal-website
|
|
|
|
|
2024-12-21 06:52:52 +00:00
|
|
|
deploy : https://mbahack2.syui.ai/personal-website
|
2024-04-23 13:21:26 +00:00
|
|
|
|
|
|
|
```bash
|
|
|
|
$ git clone https://github.com/github/personal-website
|
|
|
|
$ personal-website
|
|
|
|
$ rvm install 2.6.1
|
|
|
|
$ rvm --default use 2.6.1
|
|
|
|
$ gem install jekyll bundler
|
|
|
|
$ bundle
|
|
|
|
$ bundle exec jekyll serve
|
|
|
|
```
|
|
|
|
|
|
|
|
repoを作って、branch:gh-pagesにpushすると、開発者っぽいabout pagesがdeployされる。url:`https://syui.github.io/personal-website`
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ git branch
|
|
|
|
$ git checkout -b gh-pages
|
|
|
|
$ git push origin gh-pages
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
# fork
|
|
|
|
$ curl -sL https://syui.github.io/personal-website
|
|
|
|
```
|
|
|
|
|
|
|
|
url,baseurlをsetすると、cssがhttps protocolになった。
|
|
|
|
|
|
|
|
```yml
|
|
|
|
$ vim _config.yml
|
2024-12-21 06:52:52 +00:00
|
|
|
url: https://mbahack2.syui.ai
|
2024-04-23 13:21:26 +00:00
|
|
|
baseurl: personal-website
|
|
|
|
|
|
|
|
$ vim _includes/header.html
|
|
|
|
// https://jekyllrb.com/news/2016/10/06/jekyll-3-3-is-here/
|
|
|
|
By default, baseurl is set to "" and therefore yields (never set to "/"):
|
|
|
|
{{ "/docs/assets/" | absolute_url }} => https://jekyllrb.com/myproject/docs/assets
|
|
|
|
{{ "/docs/assets/" | relative_url }} => /myproject/docs/assets
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
ちなみに、dirではなくrootに置く場合は、`repo`を`${user}.github.io`にする。
|
|
|
|
|