mkapidocs.py: organize the doxygen support code