No project description provided
Project description
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:
linkify-it-py - required for specific MyST Parser functionality.
The optional extensions bundled into canonical-sphinx using the [full] optional installation are:
Using canonical-sphinx
To use canonical-sphinx in your project:
1. Install canonical-sphinx. It is recommended to install canonical-sphinx[full].
This can be done via pypi, or by using the package available in the canonical-sphinx repository. It is recommended to use canonical-sphinx[full].
Add canonical-sphinx to 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.
3. (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.
Project details
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
File details
Details for the file canonical_sphinx-0.4.1.tar.gz
.
File metadata
- Download URL: canonical_sphinx-0.4.1.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 288ac950fbbda5715e9569069da0116a5b1bff9352f561115e831da73dcbfffa |
|
MD5 | 1066634d0a286c200cbff0b6150aaec3 |
|
BLAKE2b-256 | 7b867731f280e00073f53e041a0338d2c12b5a0007f96f1e01d93d97f04bb707 |
Provenance
The following attestation bundles were made for canonical_sphinx-0.4.1.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.4.1.tar.gz
- Subject digest:
288ac950fbbda5715e9569069da0116a5b1bff9352f561115e831da73dcbfffa
- Sigstore transparency entry: 193677352
- Sigstore integration time:
- Permalink:
canonical/canonical-sphinx@f7e1ba30231e556a36c5385e02b237e1ff4425d4
- Branch / Tag:
refs/tags/0.4.1
- Owner: https://github.com/canonical
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
self-hosted
- Publication workflow:
release-publish.yaml@f7e1ba30231e556a36c5385e02b237e1ff4425d4
- Trigger Event:
push
- Statement type:
File details
Details for the file canonical_sphinx-0.4.1-py3-none-any.whl
.
File metadata
- Download URL: canonical_sphinx-0.4.1-py3-none-any.whl
- Upload date:
- Size: 1.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2e4142e9b7e01a8dff9ad8e7b68d62bd27ff9daa7998b56f449b9b2ef5c2125 |
|
MD5 | b01efe131656709b30c342ce84f655c6 |
|
BLAKE2b-256 | 4152631041a7fb3c0928e6529a05a5ed56c8bbecf7452e83d50af18ea0cdb9fc |
Provenance
The following attestation bundles were made for canonical_sphinx-0.4.1-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.4.1-py3-none-any.whl
- Subject digest:
e2e4142e9b7e01a8dff9ad8e7b68d62bd27ff9daa7998b56f449b9b2ef5c2125
- Sigstore transparency entry: 193677353
- Sigstore integration time:
- Permalink:
canonical/canonical-sphinx@f7e1ba30231e556a36c5385e02b237e1ff4425d4
- Branch / Tag:
refs/tags/0.4.1
- Owner: https://github.com/canonical
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
self-hosted
- Publication workflow:
release-publish.yaml@f7e1ba30231e556a36c5385e02b237e1ff4425d4
- Trigger Event:
push
- Statement type: