This extension is deprecated.
canonical-sphinx 0.7.0 will be the final major release of this extension. It will receive security and bug fixes through the end of the 27.04 release cycle, when development will cease entirely.
All Canonical Sphinx projects should now use the Ulwazi theme. Please make the switch at your nearest convenience. Guidance is available in Switch to the Ulwazi theme.
canonical-sphinx
Extension and theme to create great Canonical-branded documentation.
Description
This project is a Sphinx extension that simplifies the installation of a group of Sphinx extensions recommended by Canonical. It also provides a design override of the Furo theme for the creation of Canonical-branded documentation.
This extension provides a minimal installation by default, and also offers a [full]
optional installation which provides significant additional functionality for
Sphinx-based documentation. This extension, when installed and added to extensions
within the configuration file of a Sphinx deployment, bundles various extensions
together and sets default configuration values, eliminating the need to list the
extensions in the extensions section of the Sphinx configuration and reducing the need
to configure the bundled extensions.
The default extensions bundled into canonical-sphinx are:
- Furo
- MyST Parser
- linkify-it-py - required for specific MyST Parser functionality.
The optional extensions bundled into canonical-sphinx using the [full]
optional installation are:
- canonical-sphinx-extensions
- sphinx-copybutton
- sphinx-design
- sphinx-notfound-page
- sphinx-reredirects
- sphinx-tabs
- sphinxcontrib-jquery
- sphinxext-opengraph
- pyspelling
Using canonical-sphinx
To use canonical-sphinx in your project:
-
Install
canonical-sphinx.This can be done via PyPI, or by using the package available in the canonical-sphinx repository.
-
Add
canonical-sphinxto your Sphinx configuration file.For example:
extensions = [ ..., "canonical_sphinx", ]
Do not add any of the bundled extensions to this configuration. They will be automatically added when Sphinx generates documentation.
-
(Optional) Add additional configuration to your Sphinx configuration file if you need to overwrite any defaults configured by canonical-sphinx.
Using a subset of packages
canonical-sphinx will identify and configure defaults for any package from the [full]
installation.
For example, using the following requirements.txt file:
canonical-sphinx
sphinx-copybutton
sphinxcontrib-jquery
With canonical-sphinx included in your project's conf.py extensions:
extensions = [
"canonical_sphinx",
]
Sphinx will configure and add defaults for sphinx-copybutton and
sphinxcontrib-jquery. The rest of the extensions from the optional [full]
installation will be ignored.
Metadata
Release files for canonical-sphinx 0.7.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| canonical_sphinx-0.7.1.tar.gz | 1.1 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| canonical_sphinx-0.7.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.1 MB
Release files / canonical_sphinx-0.7.1.tar.gz
| Download URL | canonical_sphinx-0.7.1.tar.gz |
|---|---|
| Size | 1.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d1fe3ae96ea238a4c4ff3d5844e296686e9a1a225fd57442503d5d5f463c82e9
|
|
BLAKE2b-256 checksum How to use checksums |
8cea9300b45a69d8191e31258e9526e93a917b196f035f91021e3c80ff4612bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.
Transparency logRelease files / canonical_sphinx-0.7.1-py3-none-any.whl
| Download URL | canonical_sphinx-0.7.1-py3-none-any.whl |
|---|---|
| Size | 1.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8c22a7fa579a1760f105acf7e039af3c4d9faa2d5f2f4a11bb5154950f29cf24
|
|
BLAKE2b-256 checksum How to use checksums |
018efa0598fe3bcf5e4cb1a6bf8f1a2b30d364affb1ccf225c6c49d1fd287f06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.
Transparency log