aboutsummaryrefslogtreecommitdiff
path: root/util/travis_docs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'util/travis_docs.sh')
-rw-r--r--util/travis_docs.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/util/travis_docs.sh b/util/travis_docs.sh
new file mode 100644
index 000000000..ec553952c
--- /dev/null
+++ b/util/travis_docs.sh
@@ -0,0 +1,14 @@
1#!/bin/bash
2
3source util/travis_push.sh
4
5if [[ "$TRAVIS_COMMIT_MESSAGE" != *"[skip docs]"* ]] ; then
6 if git diff --name-only ${TRAVIS_COMMIT_RANGE} | grep -e '^quantum/' -e '^tmk_core/' -e '^docs/api_.*'; then
7 echo "Generating API docs..."
8 rm -rf doxygen
9 doxygen Doxyfile
10 moxygen -a -g -o -q docs/api_%s.md doxygen/xml
11 git add docs/api_*
12 git commit -m'autogenerated api docs for ${TRAVIS_COMMIT_RANGE}' || true
13 fi
14fi