summaryrefslogtreecommitdiff
path: root/tools/docs-push-gh-pages
blob: 36e80f8cf745c6d1034c4f372b9d63c8a9c57c4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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