Enhanced Sphinx TocTree which shows classes, functions etc. as if they were sections.
Project description
Enhanced Sphinx TocTree which shows classes, functions etc. as if they were sections.
Docs |
|
---|---|
Tests |
|
PyPI |
|
Anaconda |
|
Activity |
|
QA |
|
Other |
This idea has been suggested in sphinx-doc/sphinx#6316 and sphinx-doc/sphinx#6435
You can see toctree-plus in action in this project’s documentation, and the documentation for domdf-python-tools (ReadTheDocs Sphinx Theme) and whey (Furo Sphinx Theme).
Installation
toctree_plus can be installed from PyPI or Anaconda.
To install with pip:
$ python -m pip install toctree_plus
To install with conda:
First add the required channels
$ conda config --add channels https://conda.anaconda.org/conda-forge $ conda config --add channels https://conda.anaconda.org/domdfcoding
Then install
$ conda install toctree_plus
Enable toctree_plus by adding "sphinxcontrib.toctree_plus" to the extensions variable in conf.py:
extensions = [
...
"sphinxcontrib.toctree_plus",
]
For more information see https://www.sphinx-doc.org/en/master/usage/extensions/index.html#third-party-extensions .
Configuration
There is currently only a single configuration option: toctree_plus_types. This determines the directive types that appear in the toctree. The default value is {"class", "function", "method"}.
Links
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 toctree_plus-0.6.0.tar.gz
.
File metadata
- Download URL: toctree_plus-0.6.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2892a87c74ad68205878e2e2b1767ee46ed56b6bf536c7b80caa07176da0479f |
|
MD5 | 6eba3cfcdc44d65a2956b82ebaa15549 |
|
BLAKE2b-256 | f6569db4b1ff60c39dff531436c23383b9b53076243630451a6a2ea2a1885dac |
File details
Details for the file toctree_plus-0.6.0-py3-none-any.whl
.
File metadata
- Download URL: toctree_plus-0.6.0-py3-none-any.whl
- Upload date:
- Size: 21.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bd51d4bc98f4361a521a06bed3539d5a3935c3396bddf1a92b0b5f2c5b333e5 |
|
MD5 | e10748ce617f3c28af4a1d3b459dba95 |
|
BLAKE2b-256 | ba08c9727ad29e5a780d278e794183301ebea2cc99c8fbdcde8570b6aebbecc2 |