Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1.15 KB

README.adoc

File metadata and controls

42 lines (31 loc) · 1.15 KB

Doxml2AsciiDoc

Utility that takes Doxygen XML and generates AsciiDoc formated API reference documentation. Its use-case is to input the doxygen generated XML from public-facing C/C++ header files and generate a represetable, easily read reference documentation for its interface.

The following doxygen items are supported:

  • Brief

  • Input parameters

  • Return values

  • Detailed description, including code blocks

Running the Converter

Install dependencies from repository through bundle

$ bundle

Generate XML output from running Doxygen on your project. Say you have a public API defined in input.h. Doxygen would produce an XML output in xml/input_8h.xml. Input this file to the converter.

Execute the binary

$ ./bin/doxml2asciidoc input_8h.xml

An example input.h is defined here, whilst the result of the conversion is located here. The HTML output after it is processed by Asciidoctor is shown here.

Recreating the Example

$ doxygen example.doxygen
$ doxml2asciidoc xml/input_8h.xml
$ asciidoctor xml/input_8h.adoc
$ open xml/input_8h.html