#!/bin/bashset-xif!doxygen -v2>&1> /dev/null;thenecho"doxygen not found! Please install it!"exit 1elif!moxygen -V2>&1> /dev/null;thenecho-n"moxygen not found! Would you like to install it? [y/n] "read ANSWERcase$ANSWERin
y|Y|yes|YES|Yes)npm install -g moxygen;;*)exit 1;;esacfiif[!-e Doxyfile ];thenecho"Error: You must run this from the top-level qmk_firmware directory!"exit 1fi# Generate the doxygen XML filesrm -rf doxygendoxygen Doxyfile# Generate the moxygen Markdown filesmoxygen -a -g -o docs/internals_%s.md doxygen/xml