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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file canonical_sphinx-0.7.0.tar.gz.
File metadata
- Download URL: canonical_sphinx-0.7.0.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
960033d106a77cb1b6520e4cf8c06936bc116a4249f1125973ac1c6b35e6c085
|
|
| MD5 |
e0b8722acfe1d429e9cc01c8344e26da
|
|
| BLAKE2b-256 |
5a1186481a8df0c67b06085a74dfb9c50f66bddeb18df6bff19bd503947f0d94
|
Provenance
The following attestation bundles were made for canonical_sphinx-0.7.0.tar.gz:
Publisher:
release-publish.yaml on canonical/canonical-sphinx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
canonical_sphinx-0.7.0.tar.gz -
Subject digest:
960033d106a77cb1b6520e4cf8c06936bc116a4249f1125973ac1c6b35e6c085 - Sigstore transparency entry: 2690961844
- Sigstore integration time:
-
Permalink:
canonical/canonical-sphinx@f4544ea7c356c6eee4f57967fdbc516e4c146e0b -
Branch / Tag:
refs/tags/0.7.0 - Owner: https://github.com/canonical
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
self-hosted -
Publication workflow:
release-publish.yaml@f4544ea7c356c6eee4f57967fdbc516e4c146e0b -
Trigger Event:
push
-
Statement type:
File details
Details for the file canonical_sphinx-0.7.0-py3-none-any.whl.
File metadata
- Download URL: canonical_sphinx-0.7.0-py3-none-any.whl
- Upload date:
- Size: 1.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
125dfc3b96aece859972daaab98943630d82e3d727ce58ce9133cadca83b3460
|
|
| MD5 |
93b79dd866c52caacbb47353e7ead147
|
|
| BLAKE2b-256 |
bab4370ac06afd7734cb62dc3678f411d59a0f4c5550d5957ddd983c82fb035d
|
Provenance
The following attestation bundles were made for canonical_sphinx-0.7.0-py3-none-any.whl:
Publisher:
release-publish.yaml on canonical/canonical-sphinx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
canonical_sphinx-0.7.0-py3-none-any.whl -
Subject digest:
125dfc3b96aece859972daaab98943630d82e3d727ce58ce9133cadca83b3460 - Sigstore transparency entry: 2690962002
- Sigstore integration time:
-
Permalink:
canonical/canonical-sphinx@f4544ea7c356c6eee4f57967fdbc516e4c146e0b -
Branch / Tag:
refs/tags/0.7.0 - Owner: https://github.com/canonical
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
self-hosted -
Publication workflow:
release-publish.yaml@f4544ea7c356c6eee4f57967fdbc516e4c146e0b -
Trigger Event:
push
-
Statement type: