GitHub Pages

GitHub Pages

[1] GitHub Pages ( ( 版)) https://pages.github.com/

[2] GitHub Help ( ( 版)) https://help.github.com/categories/20/articles

[3] hoge.html というファイルを置くと hoge という URL でアクセスできます。

[4] しかし fuga.cssfuga ではアクセスできません。

[5] foo/index.html には foo/ でアクセスできます。 foofoo/ にリダイレクトされます。

[6] http: でも https: でもアクセスできます。

[7] Securing your GitHub Pages site with HTTPS - User Documentation ( ()) https://help.github.com/articles/securing-your-github-pages-site-with-https/

HTTPS enforcement is required for GitHub Pages sites created after June 15, 2016 and using a github.io domain. If you created your GitHub Pages site before June 15, 2016, you can manually enable HTTPS enforcement. HTTPS is not supported for GitHub Pages using custom domains.

[8] いつのまにか submodulegit: URL だとエラーが出るようになったみたいです。 https: URL に書き換えるようにいわれます。

[10] submodule を使わない設定にはできないみたいです。

[11] >>10 GitHub Actions 経由で deploy できるようになりました。 それを使って自分でコードを書くこともできますが、 設定ページから自動で設定ファイルを生成することもできて、 その自動生成された初期状態のままで、 submodule なしで GitHub Pages に deploy させることができます。

[12] GitHub Actionsactions/upload-pages-artifact@v1

tar: ./path/to/file: File removed before we read it
Error: Process completed with exit code 1.

のようなエラーが出て失敗することがあります。 参照先のない symlink があるとこのエラーになる模様。 解決策はそういう symlink を除去するしかありません。

[9] 独自ドメインでは HTTPS を使えません。