Moxygen is a Doxygen XML to Markdown converter for C++ developers who want a minimal and beautiful solution for documentating their projects.
Moxygen is currently used in conjunction with GitBook to generate the API documentation for LibSourcey.
Features
Multi page output: Output single or multiple files
Internal linking: Anchors in comments and function definitions are supported
Markdown comments: Markdown in Doxygen comments are rendered
Doxygen groups: Doxygen grouping is supported for more organised documentation
Custom templates: Modify the core Markdown templates to add your own flavour
Optional index: Optionally render a top level index
Usage
Add GENERATE_XML=YES to your Doxyfile first.
Run doxygen to generate the XML documentation.
Install moxygen like so: npm install moxygen -g.
Run moxygen providing the folder location of the XML documentation as the first argument ie. {OUTPUT_DIRECTORY}/xml.
Usage: moxygen [options] <doxygen XML directory>
Options:
-V, --version output the version number
-o, --output <file> output file, must contain "%s" when using `groups` or `classes`
-g, --groups output doxygen groups into separate files
-c, --classes output doxygen classes into separate files
-p, --pages output doxygen pages into separate files
-n, --noindex disable generation of the index, ignored with `groups` or `classes`
-a, --anchors add anchors to internal links
-H, --html-anchors add html anchors to internal links
-l, --language <lang> programming language
-t, --templates <dir> custom templates directory
-L, --logfile [file] output log messages to file
-q, --quiet quiet mode
-h, --help output usage information
Multi-page Output
Moxygen supports the doxygen groups syntax for generating multi page documentation. Every \defgroup in your source code will be parsed and output into a separate markdown file, with internal reference updated accordingly.
请发表评论