๐Ÿš€ Usageยถ

Install the packageยถ

The package is published on our internal PyPI server. Add confirm-sphinx to the dependencies of your project, e.g. in your pyproject.toml:

[project.optional-dependencies]
docs = [
    'confirm-sphinx',
]

Or install it manually:

pip install -i https://pypi.confirm.ch/ confirm-sphinx

Note

confirm-sphinx needs Python 3.12 or newer and Sphinx 9.1 or newer. It pulls in Furo and all extensions enabled by the defaults, so you donโ€™t have to install them yourself.

Use the theme onlyยถ

If you want the look, but not the defaults, only set the theme in your conf.py:

html_theme = 'confirm-sphinx'

Sphinx finds the theme through the sphinx.html_themes entry point, so you donโ€™t need to add anything to extensions. In this mode, none of the defaults or extensions are applied. See ๐ŸŽจ Theme for the available options.

Upgrade from confirm.sphinx.defaultsยถ

Older versions shipped a confirm.sphinx.defaults module, which you imported with from confirm.sphinx.defaults import *. That module is gone. To upgrade your project:

  1. Remove the from confirm.sphinx.defaults import * line.

  2. Add 'confirm.sphinx' to extensions.

  3. Replace extensions += [...] with a plain extensions = [...] list.

  4. Replace html_theme_options.update({...}) with a plain html_theme_options = {...} dictionary.