autodocsumm

0.2.15 · active · verified Sun Apr 12

autodocsumm is a Sphinx extension that enhances `sphinx.ext.autodoc` by automatically generating summary tables, similar to `sphinx.ext.autosummary`. It creates a Table of Contents with lists of methods, classes, functions, and attributes for documented modules or classes. The library is actively maintained, with frequent releases to ensure compatibility with the latest Sphinx versions. The current version is 0.2.15.

Warnings

Install

Imports

Quickstart

To enable `autodocsumm`, add `sphinx.ext.autodoc` and `autodocsumm` to the `extensions` list in your Sphinx `conf.py` file. Then, use the `:autosummary:` option with `autodoc` directives such as `automodule` or `autoclass` in your reStructuredText or MyST files to generate summary tables. You can also set `autodoc_default_options = {'autosummary': True}` in `conf.py` to activate it by default for all autodoc directives.

# In conf.py
extensions = [
    'sphinx.ext.autodoc',
    'autodocsumm'
]

# Optional: Make autosummary active by default for all autodoc directives
# autodoc_default_options = {'autosummary': True}

# In your .rst or .md file (e.g., module.rst)
..
.. automodule:: my_package.my_module
   :members:
   :autosummary:

.. autoclass:: my_package.my_module.MyClass
   :members:
   :autosummary:

view raw JSON →