Skip to main content

Searchable and sortable tables in Sphinx documentation

Project description

This extension makes it easy to use more expressive tables in Sphinx documentation with DataTables. See the demo and full documentation online.

Installation

pip install sphinx-datatables

Usage

Add the extension in your conf.py:

extensions = [
    "sphinxcontrib.jquery",
    "sphinx_datatables",
]

In your .rst documentation, create a table and add a custom class label. Your table must have a valid header row.

.. csv-table::
    :header: First Name,Last Name
    :class: sphinx-datatable

    John,Smith
    Jane,Doe

Configuration

The following configuration options are available with the following default values:

# in conf.py

# set the version to use for DataTables plugin
datatables_version = "2.3.0"

# name of the class to use for tables to enable DataTables
datatables_class = "sphinx-datatable"

# any custom options to pass to the DataTables constructor. Note that any
# options you set are used for all DataTables.
datatables_options = {}

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_datatables-0.3.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

sphinx_datatables-0.3.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_datatables-0.3.1.tar.gz.

File metadata

  • Download URL: sphinx_datatables-0.3.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sphinx_datatables-0.3.1.tar.gz
Algorithm Hash digest
SHA256 a1ac87c8119661a7b854342b1184a99a027d09f337363d7f639421a3c7d3e72d
MD5 11378903ac299e454830b81ee6bbc759
BLAKE2b-256 5100685d4f0660accb8d4488fbf919ee85a36c44819898f8e6d116450e8fe5cd

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_datatables-0.3.1.tar.gz:

Publisher: publish.yml on sharm294/sphinx-datatables

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_datatables-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_datatables-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8a30746d1ea3d07c36263bc7182bfe1a27f0370ec7965d3e598164f305f0150e
MD5 3d94bdb94711ed13705243b412840bf9
BLAKE2b-256 5349f2a559741699117b096be539cf15a3f951cab65ed260880a2e7320bf9c7e

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_datatables-0.3.1-py3-none-any.whl:

Publisher: publish.yml on sharm294/sphinx-datatables

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