summaryrefslogtreecommitdiff
path: root/tools/docs-push-gh-pages
diff options
context:
space:
mode:
authorOleg Morozenkov <m@oleg.rocks>2019-12-05 02:11:51 +0300
committerOleg Morozenkov <m@oleg.rocks>2019-12-05 02:11:51 +0300
commit302d64182a86a4ea53a2f6133b5218ef50157bfa (patch)
tree5614d400562ecb17650e8420d26de2446d794f60 /tools/docs-push-gh-pages
parent99b337b65cc6727f51c1d26aac17f01c318c38d6 (diff)
Rename tools scripts
Diffstat (limited to 'tools/docs-push-gh-pages')
-rwxr-xr-xtools/docs-push-gh-pages14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/docs-push-gh-pages b/tools/docs-push-gh-pages
new file mode 100755
index 0000000..36e80f8
--- /dev/null
+++ b/tools/docs-push-gh-pages
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+./docs-generate
+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