The Sphinx theme for the CPython docs and related projects. It provides a clean, responsive design and includes features like a dark mode, code copy buttons, and internationalization support. The library is actively maintained with frequent releases, typically on a monthly or bi-monthly cadence. The current version is 2026.3.
pip install python-docs-themeVerified import paths — ran on the pinned version, not inferred.
A basic Sphinx project setup, demonstrating how to enable the `python-docs-theme`. After running `sphinx-quickstart` to create your project structure, edit `conf.py` to set the `html_theme`.
Upgrade your Python environment to 3.12 or newer, or pin `python-docs-theme<2025.4`.
Upgrade your Sphinx installation to 7.3 or newer, or pin `python-docs-theme<2025.4`.
Upgrade to `python-docs-theme` 2026.2 or newer to ensure full copy button functionality for all code blocks, including shell and console examples.
If encountering unexpected layout issues, temporarily comment out or unset these theme-related configurations in `conf.py` to see if they are causing the conflict.