2018-03-22 07:50:38 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
source util/travis_push.sh
|
|
|
|
|
|
|
|
if [[ "$TRAVIS_COMMIT_MESSAGE" != *"[skip docs]"* ]] ; then
|
|
|
|
if git diff --name-only ${TRAVIS_COMMIT_RANGE} | grep -e '^quantum/' -e '^tmk_core/' -e '^docs/api_.*'; then
|
|
|
|
echo "Generating API docs..."
|
|
|
|
rm -rf doxygen
|
|
|
|
doxygen Doxyfile
|
2018-03-22 08:45:24 +01:00
|
|
|
moxygen -q -a -g -o docs/api_%s.md doxygen/xml
|
2018-03-22 07:50:38 +01:00
|
|
|
git add docs/api_*
|
|
|
|
git commit -m'autogenerated api docs for ${TRAVIS_COMMIT_RANGE}' || true
|
|
|
|
fi
|
|
|
|
fi
|