sphinx.ext.autodoc
-like extensions for auto-generating codebase documentation in languages other than Python. To date, sphinx-babel
includes:
sphinx_babel.autodox
to ingest Doxygen documentation. This extension simply invokesdoxygen
(which is assumed to be present in the system) anddoxysphinx
to produce the desired output.
Useful for polyglot projects.
Install the package from sources e.g.:
pip install git+https://github.com/Ekumen-OS/sphinx-babel.git
Then add the extensions of choice to your conf.py
file e.g.:
extensions = ["sphinx_babel.autodox"]
To use sphinx_babel.autodox
, you must list each of your Doxygen projects in your conf.py
file e.g.:
extensions = ["sphinx_babel.autodox"]
autodox_outdir = "path/to/output"
autodox_projects = {
"my_project": "path/to/doxygen/docs",
}
All paths will be resolved relative to the Sphinx source directory. You may refer to the generated documentation like path/to/output/my_project/html/index
. Note only the html
format is supported.