A Sphinx extension to list items such as figures, tables, versionadded, etc.
Project description
sphinx-list-items
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.
Features
- 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
Installation
pip install sphinx-list-items
Or for development:
pip install -e .
Setup
Add to your conf.py:
extensions = ['sphinx_list_items']
Usage
List all figures (as a list)
.. list-items:: figures
:list:
List all figures (as a table)
.. list-items:: figures
:table:
List all tables (as a list)
.. list-items:: tables
:list:
List all tables (as a table)
.. list-items:: tables
:table:
List Sphinx version directives (as a list)
.. list-items:: versionadded
:list:
.. list-items:: versionchanged
:list:
.. list-items:: deprecated
:list:
.. list-items:: versionremoved
:list:
List Sphinx version directives (as a table)
.. list-items:: versionadded
:table:
Filter version items by version
.. list-items:: versionadded
:table:
:version: 0.0.2
Custom columns for tables
.. list-items:: versionchanged
:table: docname, version, text, type
Advanced
- 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).
Example
See the examples and specimens in this repository for real-world usage.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sphinx_list_items-1.0.0.tar.gz.
File metadata
- Download URL: sphinx_list_items-1.0.0.tar.gz
- Upload date:
- Size: 19.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aed39f01a55f443c918119f07d171c80f62894b32dc6782a762e1548ca2d4f04
|
|
| MD5 |
c6a74aebf8fbbf874d6af00406a8f927
|
|
| BLAKE2b-256 |
eeb5621786b942580a18cff5788d0e53b05fa213247f6e0867da2f8b1c62d499
|
Provenance
The following attestation bundles were made for sphinx_list_items-1.0.0.tar.gz:
Publisher:
build-release.yml on JoKneeMo/sphinx-list-items
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_list_items-1.0.0.tar.gz -
Subject digest:
aed39f01a55f443c918119f07d171c80f62894b32dc6782a762e1548ca2d4f04 - Sigstore transparency entry: 472707233
- Sigstore integration time:
-
Permalink:
JoKneeMo/sphinx-list-items@183d05c38b2f5baf9f3b02efe9450f9b0560d5d6 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/JoKneeMo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-release.yml@183d05c38b2f5baf9f3b02efe9450f9b0560d5d6 -
Trigger Event:
push
-
Statement type:
File details
Details for the file sphinx_list_items-1.0.0-py3-none-any.whl.
File metadata
- Download URL: sphinx_list_items-1.0.0-py3-none-any.whl
- Upload date:
- Size: 20.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3fbf24dc784652c1179de5a4ba5107911e1ab9e35efc64a7e8dc02a75827d84
|
|
| MD5 |
25d99c8aa1d957dd06ceacbd5bf46815
|
|
| BLAKE2b-256 |
266842a806ad2aead66054e5ca27eabe24a41af20320af2f639aa0461a4660e7
|
Provenance
The following attestation bundles were made for sphinx_list_items-1.0.0-py3-none-any.whl:
Publisher:
build-release.yml on JoKneeMo/sphinx-list-items
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_list_items-1.0.0-py3-none-any.whl -
Subject digest:
e3fbf24dc784652c1179de5a4ba5107911e1ab9e35efc64a7e8dc02a75827d84 - Sigstore transparency entry: 472707258
- Sigstore integration time:
-
Permalink:
JoKneeMo/sphinx-list-items@183d05c38b2f5baf9f3b02efe9450f9b0560d5d6 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/JoKneeMo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-release.yml@183d05c38b2f5baf9f3b02efe9450f9b0560d5d6 -
Trigger Event:
push
-
Statement type: