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