Peter's keyboard firmware (QMK) https://qmk.fm/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

generate_internal_docs.sh 601B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/bash
  2. set -x
  3. if ! doxygen -v 2>&1 > /dev/null; then
  4. echo "doxygen not found! Please install it!"
  5. exit 1
  6. elif ! moxygen -V 2>&1 > /dev/null; then
  7. echo -n "moxygen not found! Would you like to install it? [y/n] "
  8. read ANSWER
  9. case $ANSWER in
  10. y|Y|yes|YES|Yes)
  11. npm install -g moxygen
  12. ;;
  13. *)
  14. exit 1
  15. ;;
  16. esac
  17. fi
  18. if [ ! -e Doxyfile ]; then
  19. echo "Error: You must run this from the top-level qmk_firmware directory!"
  20. exit 1
  21. fi
  22. # Generate the doxygen XML files
  23. rm -rf doxygen
  24. doxygen Doxyfile
  25. # Generate the moxygen Markdown files
  26. moxygen -a -g -o docs/internals_%s.md doxygen/xml