Skip to main content

Customised version of sphinx.ext.autodoc and sphinx.ext.autosummary

Project description

Sphinx-autox

A little opinionated version of autodoc and autosummary that recursively documents your modules and creates one file per class.

Usage

Add sphinxext_autox as the first entry to your extensions in conf.py:

extensions = [
    'sphinxext_autox',
    ...
]

Create a api.rst file like the following:

My API
======

.. autosummary::
   :toctree: source
   :recursive:

   mymodule1
   mymodule2

The stub files will be created/maintained in the source folder.

Critique

Unfortunately, since other files in Sphinx also try to load autodoc, this package has to replace the original files. It isn't possible to make a custom version without also having to change the rST tags.

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

sphinxext_autox-0.0.1.tar.gz (50.1 kB view hashes)

Uploaded Source

Built Distribution

sphinxext_autox-0.0.1-py3-none-any.whl (57.5 kB view hashes)

Uploaded Python 3

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