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.0.tar.gz (5.2 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.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sphinx_datatables-0.3.0.tar.gz
Algorithm Hash digest
SHA256 08d40ce8a5192192b877133bb31d8282038566bcb16a369c8786f3326f248fdc
MD5 10d9265c00aeb8adf2e092830c6e6489
BLAKE2b-256 4e426abbfce47e3e7bffaddc7b785ed701253fcbb82a231aaad5793d57c77b34

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_datatables-0.3.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_datatables-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d1fda265c164625380b8b276b34d3cca56d146fb3522e7b2df34030d8e8cb2b0
MD5 55cb8253d25ddcc5dbd34cfefb301446
BLAKE2b-256 002d15b0193a78392398eb9b3ca3789355bc0602cbcf0ecda84027f90c103ccb

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_datatables-0.3.0-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