I tried the following solution for using Doxygen in Read The Docs and it seems to work:
- install an empty sphinx project (see the official sphinx document),
- in sphinx conf.py add a command to create documentation for oxygen,
- use the conf.py html_extra_path configuration to overwrite the generated doxygen documentation on the generated sphinx documentation.
I tested this with the following source tree:
.../doc/Doxyfile /build/html /sphinx/conf.py /sphinx/index.rst /sphinx/...
Some explanation:
- in my setup doxygen creates its documentation in "doc / build / html",
- ReadTheDocs runs its commands in the directory where it finds the conf.py file.
What to do:
add the following lines to conf.py to generate doxygen docs:
import subprocess subprocess.call('cd .. ; doxygen', shell=True)
Update the conf.py html_extra_path directive to:
html_extra_path = ['../build/html']
In this configuration, ReadTheDocs must correctly create and store the Doxygen html documentation.
TODO:
- other documentation formats, for example: pdf.
kzeslaf
source share