Skip to main content

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:

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.

    This can be done via PyPI, or by using the package available in the canonical-sphinx repository.

  2. 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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

canonical_sphinx-0.7.0.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

canonical_sphinx-0.7.0-py3-none-any.whl (1.0 MB view details)

Uploaded Python 3

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

Hashes for canonical_sphinx-0.7.0.tar.gz
Algorithm Hash digest
SHA256 960033d106a77cb1b6520e4cf8c06936bc116a4249f1125973ac1c6b35e6c085
MD5 e0b8722acfe1d429e9cc01c8344e26da
BLAKE2b-256 5a1186481a8df0c67b06085a74dfb9c50f66bddeb18df6bff19bd503947f0d94

See more details on using hashes here.

Provenance

The following attestation bundles were made for canonical_sphinx-0.7.0.tar.gz:

Publisher: release-publish.yaml on canonical/canonical-sphinx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file canonical_sphinx-0.7.0-py3-none-any.whl.

File metadata

File hashes

Hashes for canonical_sphinx-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 125dfc3b96aece859972daaab98943630d82e3d727ce58ce9133cadca83b3460
MD5 93b79dd866c52caacbb47353e7ead147
BLAKE2b-256 bab4370ac06afd7734cb62dc3678f411d59a0f4c5550d5957ddd983c82fb035d

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.7.0 This release

2 files

0.6.0

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

0.4.1

2 files

0.4.0

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page