Skip to main content

Doxygen / Sphinx bridge, with autodoc and autosummary

Project description

https://travis-ci.org/rmcgibbo/sphinxcontrib-autodoc_doxygen.svg?branch=master

Example Output

This a (pre-alpha) extension for sphinx that to read and display Doxygen XML output. It is similar to Breathe. The implementation extends sphinx.ext.autodoc and sphinx.ext.autosummary as closely as possble.

Usage

In your Sphinx conf.py add 'sphinxcontrib.autodoc_doxygen' to the list of extensions, and set the variable doxygen_xml to a string containing the path to the directory containing your Doxygen XML output.

This adds the following RST directives.

autodoxysummary
autodoxyclass
autodoxymethod
autodoxyenum

Examples

.. autodoxysummary::
   :toctree: generated/
   :template: doxyclass.rst

   OpenMM::CustomIntegrator
   OpenMM::CustomCompoundBondForce

This produces the output shown here

Installation

You can install it with pip (py27 or py33+):

pip install sphinxcontrib-autodoc_doxygen

The necessary dependences should be grabbed by pip. If you have trouble getting lxml, here are some tips:

If you use the Anaconda Python distribution, run conda install lxml. With the system package manager on linux, sudo apt-get install python-lxml or sudo yum install python-lxml should do the trick. On Windows, you may be able to download the lxml from Christoph Gohlke’s repository. On OS X, try the following long command brew install libxslt libxml2; LDFLAGS="-L/usr/local/opt/libxslt/lib -L/usr/local/opt/libxml2/lib" CPPFLAGS="-I/usr/local/opt/libxml2/include -I/usr/local/opt/libxslt/include" pip install lxml. It may take a long time (~5 minutes), but once the wheel is built, it will be cache, so you only need to do this once, even if switch virtualenvs.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinxcontrib-autodoc_doxygen-0.3.0.tar.gz (251.2 kB view details)

Uploaded Source

Built Distribution

sphinxcontrib_autodoc_doxygen-0.3.0-py2.py3-none-any.whl (16.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file sphinxcontrib-autodoc_doxygen-0.3.0.tar.gz.

File metadata

File hashes

Hashes for sphinxcontrib-autodoc_doxygen-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e3b08455c9b0f03b2c96bdbb85582ddf425794bc27e43bb12aa6fc89ba504cba
MD5 f7260b07d2d61e75dc048119f7e94915
BLAKE2b-256 f1468413f33c21f1c0c543967408187f8d32000322f1d142e688ca21eb96d39f

See more details on using hashes here.

File details

Details for the file sphinxcontrib_autodoc_doxygen-0.3.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for sphinxcontrib_autodoc_doxygen-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f34285890800ba69f796b74d29afad0a38c9a8634d84200673577952d5094b62
MD5 dd353298a18dc42eaef10e577e376e90
BLAKE2b-256 3fbe04fdbd6eef19ee39317c3aeb97a5e3b9cdc69990005a888ae150ee962f9b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page