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.4.1.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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

Hashes for canonical_sphinx-0.4.1.tar.gz
Algorithm Hash digest
SHA256 288ac950fbbda5715e9569069da0116a5b1bff9352f561115e831da73dcbfffa
MD5 1066634d0a286c200cbff0b6150aaec3
BLAKE2b-256 7b867731f280e00073f53e041a0338d2c12b5a0007f96f1e01d93d97f04bb707

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for canonical_sphinx-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e2e4142e9b7e01a8dff9ad8e7b68d62bd27ff9daa7998b56f449b9b2ef5c2125
MD5 b01efe131656709b30c342ce84f655c6
BLAKE2b-256 4152631041a7fb3c0928e6529a05a5ed56c8bbecf7452e83d50af18ea0cdb9fc

See more details on using hashes here.

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

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

Supported by

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