readme: setup github pages to overcome 512k limit

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-07-05 00:00:00 +00:00
parent c98d93f7f7
commit de1457c932
9 changed files with 384 additions and 51 deletions

15
publish-gh-pages Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bash
# https://github.com/cirosantilli/linux-kernel-module-cheat#github-pages
set -eu
git push
./build-doc --github-pages
git branch -D gh-pages
git checkout --orphan gh-pages
git reset
cp out/README.html index.html
git add _config.yml index.html
git commit --message "$(git log -n1 --pretty='%H' master)"
git push --force
git symbolic-ref HEAD refs/heads/master
git reset
rm index.html