Sphinx Toolbox

4.1.2 · active · verified Mon Apr 13

sphinx-toolbox is a collection of handy tools and extensions designed to enhance Sphinx, the Python documentation generator. It provides various directives, roles, advanced autodoc features, and general tweaks to improve the Sphinx documentation experience. The library is currently at version 4.1.2 and maintains an active development cycle, releasing minor and patch versions frequently to support new Sphinx and Python versions.

Warnings

Install

Imports

Quickstart

To quickly get started, install the library and then add 'sphinx_toolbox' and any desired sub-extensions (like 'sphinx_toolbox.more_autodoc') to the `extensions` list in your Sphinx project's `conf.py` file. This enables the enhanced features provided by the toolbox.

# conf.py

# Standard Sphinx extensions
extensions = [
    'sphinx.ext.autodoc',
    'sphinx.ext.napoleon',
    'sphinx.ext.viewcode',
]

# Add sphinx-toolbox extensions
extensions.extend([
    'sphinx_toolbox', # Enables core toolbox features
    'sphinx_toolbox.more_autodoc', # Enables all enhanced autodoc features
    # Or enable specific sub-extensions individually, e.g.:
    # 'sphinx_toolbox.collapse',
    # 'sphinx_toolbox.github',
    # 'sphinx_toolbox.installation',
])

# Project information
project = 'My Project'
copyright = '2026, Your Name'
author = 'Your Name'
release = '0.1.0'

# Example of a sphinx-toolbox configuration option
# source_link_target = 'GitHub' # For sphinx_toolbox.source extension

view raw JSON →