Sphinx theme for Python documentation
Find a file
Hugo van Kemenade 2ac4375916
Prepare 2025.12 release (#286)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-12-10 17:47:36 +02:00
.github Add zizmor to CI and fix findings (#283) 2025-12-08 19:39:28 +02:00
python_docs_theme Prepare 2025.12 release (#286) 2025-12-10 17:47:36 +02:00
.babel.cfg Add missing i18n for copy button titles (#225) 2025-04-04 15:37:48 +03:00
.gitignore Initial commit 2017-06-04 14:14:32 -07:00
.pre-commit-config.yaml Add zizmor to CI and fix findings (#283) 2025-12-08 19:39:28 +02:00
.readthedocs.yml Build CPython docs with this theme on Read the Docs 2023-02-07 18:28:48 +02:00
babel_runner.py Enable theme translation (#246) 2025-09-07 20:10:55 +03:00
CHANGELOG.md Prepare 2025.12 release (#286) 2025-12-10 17:47:36 +02:00
CONTRIBUTING.md Convert CHANGELOG and CONTRIBUTING from .rst to .md (#277) 2025-12-08 19:30:59 +02:00
LICENSE Initial version of theme. 2017-06-05 14:38:29 -07:00
Makefile Stretch search button to text width (#268) 2025-09-15 19:19:00 +03:00
pyproject.toml Add support for Python 3.15 (#282) 2025-11-28 12:38:09 +02:00
README.md Add link to devguide in README (#266) 2025-10-24 18:19:31 +03:00
requirements.txt Drop support for Python 3.10 and 3.11 (#234) 2025-04-18 23:10:06 +01:00

Python Docs Sphinx Theme

This is the theme for the Python documentation. It requires Python 3.12 or newer and Sphinx 7.3 or newer.

Note that when adopting this theme, you're also borrowing an element of the trust and credibility established by the CPython core developers over the years. That's fine, and you're welcome to do so for other Python community projects if you so choose, but please keep in mind that in doing so you're also choosing to accept some of the responsibility for maintaining that collective trust.

To use the theme, install it into your docs build environment via pip (preferably in a virtual environment).

Configuration options

To use this theme, add the following to conf.py:

Translation

This theme supports localization. For more information see the Python Developer's Guide.

Preview

See a demo of the CPython docs using this theme:

The kitchen sink is a showcase of every Sphinx feature: