A Sphinx extension to automatically list figures, tables, and Sphinx version directives (versionadded, versionchanged, deprecated, versionremoved) in your documentation. Output as a bulleted list or a customizable table, with filtering and advanced options.
- List all figures or tables in your documentation
- List Sphinx version directives (with prefix-stripping for cleaner output)
- Output as a bulleted list or a table (with custom columns)
- Filter version items by version number
- Works with cross-references and section links
pip install sphinx-list-itemsOr for development:
pip install -e .Add to your conf.py:
extensions = ['sphinx_list_items'].. list-items:: figures
:list:.. list-items:: figures
:table:.. list-items:: tables
:list:.. list-items:: tables
:table:.. list-items:: versionadded
:list:
.. list-items:: versionchanged
:list:
.. list-items:: deprecated
:list:
.. list-items:: versionremoved
:list:.. list-items:: versionadded
:table:.. list-items:: versionadded
:table:
:version: 0.0.2.. list-items:: versionchanged
:table: docname, version, text, type- All output supports cross-references to the source location.
- Version directive output strips the prefix (e.g., "Added in version 1.0.0:") for clean summaries.
- You can use
:list:or:table:for any supported type. - For tables, you can specify custom columns (e.g.,
:table: id, caption).
See the examples and specimens in this repository for real-world usage.