Skip to main content

Sphinx extension for Doxygen entries.

Project description

Language Package Package

Licence HTML PDF

Doxysummary

A Sphinx extension for creating autosummary with entries from xml files generated by Doxygen.

Installation

To install doxysummary:

$ pip install .

To build examples:

$ cd example
$ doxygen Doxyfile
$ make html

To compile the doc:

$ cd docs
$ make html

Usage

In conf.py, add sphinx_doxysummary to the list of extensions, and set the config variable doxygen_xml to the list of locations of xml files:

extensions = [...
    'sphinx_doxysummary',
    ...
]

doxygen_xml = ['./xml']  # each directory corresponds to one Doxygen project

Then in the input rst file, add the following directive:

.. doxysummary::
   :toctree: generated
   :template: cppclass.rst

   spam::Foo  # this is comment
   Bar
   ~a_long_name_space::MyClass  # only MyClass appears in the summary table

Note:

  • Anything placed after # is line comment.
  • Display non-scoped name in the summary table by placing a ~ at the beginning of the entry

Options

  • :template: (optional) : name of the template.

  • :toctree: (optional) : directory in which rst files are generated.

  • :scope: (optional) : current scope (namespace, class, enum, etc) of the items.

    .. doxysummary::
       :toctree: generated
       :template: cppclass.rst
       :scope: fruit
    
       Cherry  # as same as fruit::Cherry
       Orange  # as same as fruit::Orange
    

User can customize the displayed name of the item in the autosummary table with aliasing:

.. doxysummary::
   :toctree: generated
   :template: cppclass.rst

   fruit::Cherry "CppCherry"
   fruit::Orange "CppOrange"  # display name is CppOrange and CppCherry

Note: Alias containing space is not recommended.

Function overloading is supported:

.. doxysummary::
   :toctree: generated

   func_overload()
   func_overload(int a) "func_overload(int)"
   func_overload(char,char)
   func_overload(const std::vector<double>&)
   func_overload(double&&)
   func_overload(long\*)
   func_overload(int (&)[3])
   func_overload(int(\*)(double))
   func_overload(int MyClass::*)

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

sphinx_doxysummary-1.0.1.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sphinx_doxysummary-1.0.1-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_doxysummary-1.0.1.tar.gz.

File metadata

  • Download URL: sphinx_doxysummary-1.0.1.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sphinx_doxysummary-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c393cd294deb5e361cfedef133bc16c2a1523cf47f1e4d097c71d13134e4cedc
MD5 3d4bc716ac7c72acb1a01095a5147eca
BLAKE2b-256 23b9bbd703ad6c8f453f0fd5c3bfa8d50be45a14bcf65c53014d317be346e836

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_doxysummary-1.0.1.tar.gz:

Publisher: publish-pypi.yml on quocdang1998/doxysummary

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sphinx_doxysummary-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_doxysummary-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9e5797a108405b4d5e592e1d594a90b8c6099a9560077cbc52742a2ee4351653
MD5 40981fd0dedf8856e7b4746701de7f08
BLAKE2b-256 13795837f7f08dc503225a2b21a0ea52c047cd97707acbe3a0ddee7e961efc97

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_doxysummary-1.0.1-py3-none-any.whl:

Publisher: publish-pypi.yml on quocdang1998/doxysummary

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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