Skip to main content

A Sphinx extension to list items such as figures, tables, versionadded, etc.

Project description

sphinx-list-items

GPL3 License PyPi Status PyPi Version

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinx_list_items-1.0.0.tar.gz (19.4 kB view details)

Uploaded Source

Built Distribution

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

sphinx_list_items-1.0.0-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

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

Hashes for sphinx_list_items-1.0.0.tar.gz
Algorithm Hash digest
SHA256 aed39f01a55f443c918119f07d171c80f62894b32dc6782a762e1548ca2d4f04
MD5 c6a74aebf8fbbf874d6af00406a8f927
BLAKE2b-256 eeb5621786b942580a18cff5788d0e53b05fa213247f6e0867da2f8b1c62d499

See more details on using hashes here.

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

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_list_items-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_list_items-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e3fbf24dc784652c1179de5a4ba5107911e1ab9e35efc64a7e8dc02a75827d84
MD5 25d99c8aa1d957dd06ceacbd5bf46815
BLAKE2b-256 266842a806ad2aead66054e5ca27eabe24a41af20320af2f639aa0461a4660e7

See more details on using hashes here.

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

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