A Sphinx extension that allows you to remove toctrees from certain pages to reduce documentation build size. Current version: 1.0.0.post1. Maintained by the ExecutableBooks project, infrequent releases.
pip install sphinx-remove-toctreesVerified import paths — ran on the pinned version, not inferred.
Enable the extension and configure which pages to remove toctrees from via the 'remove_toctrees_from' list.
Use e.g. 'page_without_toctree' not 'source/page_without_toctree.rst'.
Only apply to pages where toctree is unnecessary (e.g., standalone content pages).
Use 'remove_toctrees_from' in conf.py.
Add 'remove_toctrees_from = []' to conf.py even if empty, or check spelling.
Ensure pages with removed toctrees are not listed as toctree entries elsewhere, or use Sphinx's 'orphan' directive.
Run 'pip install sphinx-remove-toctrees' and ensure conf.py has 'extensions = ['sphinx_remove_toctrees']'.