Skip to content

Commit

Permalink
Update tools scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
reo7sp committed Dec 4, 2019
1 parent 302d641 commit 30c3ae5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion tools/docs-generate
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/bash
set -e

cd ..
rm -rf doc docs
rm -rf doc docs || true
doxygen
mv doc/html docs
touch docs/.nojekyll
5 changes: 3 additions & 2 deletions tools/docs-push-gh-pages
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
#!/bin/bash
set -e

./docs-generate
cd ..
git checkout gh-pages
find . -maxdepth 1 -not -name "docs" -not -name ".git" -not -name "tools" -print0 | xargs -0 rm -r
find . -maxdepth 1 -not -name "docs" -not -name ".git" -not -name "tools" -print0 | xargs -0 rm -r || true
mv docs/* .
mv docs/.nojekyll .
rmdir docs
rm -r tools/*
rm -r tools/* || true
git add -A
git commit -m "Updated docs $(date)"
git push origin gh-pages
Expand Down

0 comments on commit 30c3ae5

Please sign in to comment.