mirror of
https://github.com/openstenoproject/qmk
synced 2024-11-10 10:39:09 +00:00
15 lines
432 B
Bash
15 lines
432 B
Bash
|
#!/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
|
||
|
moxygen -a -g -o -q docs/api_%s.md doxygen/xml
|
||
|
git add docs/api_*
|
||
|
git commit -m'autogenerated api docs for ${TRAVIS_COMMIT_RANGE}' || true
|
||
|
fi
|
||
|
fi
|