aboutsummaryrefslogtreecommitdiffstats
path: root/tools/update_docs
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-09-22 00:02:59 +0100
committerYann Herklotz <ymherklotz@gmail.com>2017-09-22 00:02:59 +0100
commit5deb18b72a4993a4baf59b7da24a04116eab31e6 (patch)
treec7a1523bed9bf7629b311d63e212957a6ae735be /tools/update_docs
parent34396f0483d94229e3a315e5eeb90c77c1425273 (diff)
parente8208166c67e564fb249aa41e9f8c5e2fa1f2b9a (diff)
downloadYAGE-5deb18b72a4993a4baf59b7da24a04116eab31e6.tar.gz
YAGE-5deb18b72a4993a4baf59b7da24a04116eab31e6.zip
Merge branch 'develop'
Diffstat (limited to 'tools/update_docs')
-rwxr-xr-xtools/update_docs32
1 files changed, 9 insertions, 23 deletions
diff --git a/tools/update_docs b/tools/update_docs
index 113fe39e..ff998368 100755
--- a/tools/update_docs
+++ b/tools/update_docs
@@ -1,27 +1,13 @@
#!/usr/bin/env bash
-printf "running doxygen on all files in %s: " $( pwd )
doxygen ./docs/Doxyfile >/dev/null 2>&1
-printf "Done\n"
-printf "cloning gh-pages from git@github.com:ymherklotz/YAGE: "
-git clone -b gh-pages git@github.com:ymherklotz/YAGE >/dev/null 2>&1
-printf "Done\n"
-printf "updating repository: "
-cd YAGE/ >/dev/null 2>&1
-git rm -rf * >/dev/null 2>&1
-mv ../html/* . >/dev/null 2>&1
-rm -rf ../html >/dev/null 2>&1
-printf "Done\n"
-printf "adding files: "
+cd html >/dev/null 2>&1
+git init >/dev/null 2>&1
+git config user.name "TravisBot" >/dev/null 2>&1
+git config user.email "" >/dev/null 2>&1
+git remote add upstream "https://$GH_TOKEN@github.com/ymherklotz/YAGE.git" >/dev/null 2>&1
+git fetch upstream >/dev/null 2>&1
+git reset upstream/gh-pages >/dev/null 2>&1
git add -A >/dev/null 2>&1
-printf "Done\n"
-printf "commiting files: "
-git commit -a -m 'Updating docs' >/dev/null 2>&1
-printf "Done\n"
-printf "pushing commit: "
-git push origin gh-pages >/dev/null 2>&1
-printf "Done\n"
-printf "cleaning up files: "
-cd .. >/dev/null 2>&1
-rm -rf YAGE >/dev/null 2>&1
-printf "Done\n"
+git commit -m "Rebuilding documentation" >/dev/null 2>&1
+git push -q upstream HEAD:gh-pages >/dev/null 2>&1