travis_docs.sh 432 B

1234567891011121314
  1. #!/bin/bash
  2. source util/travis_push.sh
  3. if [[ "$TRAVIS_COMMIT_MESSAGE" != *"[skip docs]"* ]] ; then
  4. if git diff --name-only ${TRAVIS_COMMIT_RANGE} | grep -e '^quantum/' -e '^tmk_core/' -e '^docs/api_.*'; then
  5. echo "Generating API docs..."
  6. rm -rf doxygen
  7. doxygen Doxyfile
  8. moxygen -a -g -o -q docs/api_%s.md doxygen/xml
  9. git add docs/api_*
  10. git commit -m'autogenerated api docs for ${TRAVIS_COMMIT_RANGE}' || true
  11. fi
  12. fi