diff options
author | Oleg Morozenkov <m@oleg.rocks> | 2018-07-23 02:35:50 +0300 |
---|---|---|
committer | Oleg Morozenkov <m@oleg.rocks> | 2018-07-23 02:35:50 +0300 |
commit | 98b8b7e4338b71ee46c4301b0bf2ae667be9a99d (patch) | |
tree | 32f8b0d32048b2d83b57773c0efa3db9600b8701 /tools/push-ghpages | |
parent | 1dd3affe306793d2129f121c11e43c45ae8690da (diff) | |
parent | 167e3e7607e43a0f06c7f87ced94f481e6525b0e (diff) |
Merge branch 'master' into nicholascw-master
Diffstat (limited to 'tools/push-ghpages')
-rwxr-xr-x | tools/push-ghpages | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/push-ghpages b/tools/push-ghpages new file mode 100755 index 0000000..e7b41fa --- /dev/null +++ b/tools/push-ghpages @@ -0,0 +1,14 @@ +#!/bin/bash + +./generate-docs +cd .. +git checkout gh-pages +find . -maxdepth 1 -not -name "docs" -not -name ".git" -not -name "tools" -print0 | xargs -0 rm -r +mv docs/* . +mv docs/.nojekyll . +rmdir docs +rm -r tools/* +git add -A +git commit -m "Updated docs $(date)" +git push origin gh-pages +git checkout master |