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 = "1.13.4"
# 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
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
File details
Details for the file sphinx-datatables-0.2.1.tar.gz
.
File metadata
- Download URL: sphinx-datatables-0.2.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d727237a16f4dbed1164419da6e8ab15bb9eb459217613b079f9f4de3b350d3 |
|
MD5 | 21a7372dd87b0990c7709ddffa38c3b5 |
|
BLAKE2b-256 | 1fd75e156865e12d8a4b8fe1c2eb6b201998914000aacc68a4a8a8884e365000 |
File details
Details for the file sphinx_datatables-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: sphinx_datatables-0.2.1-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d4381307710c4609e494a1de300a434d70368e0223454fcf1c8d9523de8fa70 |
|
MD5 | 7be350323e1d35d7581d4d51edcc6bb9 |
|
BLAKE2b-256 | ed1cab092695982b81a0b0d118d4ef0ddc9c58fce7c5c2a0ee50855383af145e |