Skip to main content

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:

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

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

canonical_sphinx-0.5.2.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.5.2-py3-none-any.whl (1.0 MB view details)

Uploaded Python 3

File details

Details for the file canonical_sphinx-0.5.2.tar.gz.

File metadata

  • Download URL: canonical_sphinx-0.5.2.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for canonical_sphinx-0.5.2.tar.gz
Algorithm Hash digest
SHA256 6957f9c63cf73c91e65e20803c008c51c0742cdf405a9f99d456e7121756181f
MD5 75c530cb88c215bb33eb8ba99fbd7f45
BLAKE2b-256 d2fc3274925945e8097307f8bed3445698e5775260b3c3a211f0094d91dfa8ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for canonical_sphinx-0.5.2.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.5.2-py3-none-any.whl.

File metadata

File hashes

Hashes for canonical_sphinx-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9cc4fa411741e08205f2cc0f3332ffc7a595f0e898b3b085a7b8188771085885
MD5 d73ffecbc4c76d9933dd5b70ddb6d3e8
BLAKE2b-256 2a6da33fe3c680d18bbd38b13873c8e697b6fc741d81971c1e456a2773fbf58a

See more details on using hashes here.

Provenance

The following attestation bundles were made for canonical_sphinx-0.5.2-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.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page