Usage

Installation

python3 -m pip install toctree_plus --user

Enable toctree_plus by adding the following to the extensions variable in your conf.py:

extensions = [
    ...
    'sphinxcontrib.toctree_plus',
    ]

For more information see https://www.sphinx-doc.org/en/master/usage/extensions#third-party-extensions .

Configuration

toctree_plus_types
Type: Dict[str]
Default: {"class", "function", "method"}

This determines the directive types that appear in the toctree.