No project description provided
Project description
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 <https://github.com/pradyunsg/furo>`_
* `MyST Parser <https://myst-parser.readthedocs.io/en/latest/>`_
* `linkify-it-py <https://pypi.org/project/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 <https://github.com/executablebooks/sphinx-copybutton>`_
* `sphinx-design <https://github.com/executablebooks/sphinx-design>`_
* `sphinx-notfound-page <https://github.com/readthedocs/sphinx-notfound-page>`_
* `sphinx-reredirects <https://github.com/documatt/sphinx-reredirects>`_
* `sphinx-tabs <https://github.com/executablebooks/sphinx-tabs>`_
* `sphinxcontrib-jquery <https://github.com/sphinx-contrib/jquery/>`_
* `sphinxext-opengraph <https://github.com/wpilibsuite/sphinxext-opengraph>`_
* `pyspelling <https://github.com/facelessuser/pyspelling>`_
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]``.
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.
=======
.. _EditorConfig: https://editorconfig.org/
.. _pre-commit: https://pre-commit.com/
.. _ReadTheDocs: https://docs.readthedocs.io/en/stable/intro/import-guide.html
.. _use this template: https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template
.. _canonical-sphinx-extensions: https://github.com/canonical/canonical-sphinx-extensions
.. _Sphinx configuration file: https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-extensions
Project details
Release history Release notifications | RSS feed
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.6.0.tar.gz.
File metadata
- Download URL: canonical_sphinx-0.6.0.tar.gz
- Upload date:
- Size: 1.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5a72a087727aced5ef5b6e5ab7225a00cdcbc87e91f5d1cdc069e376007c273
|
|
| MD5 |
2201bf58ec1778787b64cc818368627b
|
|
| BLAKE2b-256 |
2d8cc8b9cae5b0a4f2214e096c73f1ef20e62c2b37a23d55bbec04bc096d2f17
|
Provenance
The following attestation bundles were made for canonical_sphinx-0.6.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.6.0.tar.gz -
Subject digest:
a5a72a087727aced5ef5b6e5ab7225a00cdcbc87e91f5d1cdc069e376007c273 - Sigstore transparency entry: 995174616
- Sigstore integration time:
-
Permalink:
canonical/canonical-sphinx@f7c6a4da8897e705b742670459cf7c7921bf0af3 -
Branch / Tag:
refs/tags/0.6.0 - Owner: https://github.com/canonical
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
self-hosted -
Publication workflow:
release-publish.yaml@f7c6a4da8897e705b742670459cf7c7921bf0af3 -
Trigger Event:
push
-
Statement type:
File details
Details for the file canonical_sphinx-0.6.0-py3-none-any.whl.
File metadata
- Download URL: canonical_sphinx-0.6.0-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.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a74f3cbaf68493904f33b63b8802128e0813404c64913292b501e7a21e9d222
|
|
| MD5 |
01ff9e70218543d1bbd2e54edbd6141c
|
|
| BLAKE2b-256 |
b33bdeba42ad80932723daba144d70f0cabec215eeab62e59d9911b0b9792988
|
Provenance
The following attestation bundles were made for canonical_sphinx-0.6.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.6.0-py3-none-any.whl -
Subject digest:
3a74f3cbaf68493904f33b63b8802128e0813404c64913292b501e7a21e9d222 - Sigstore transparency entry: 995174618
- Sigstore integration time:
-
Permalink:
canonical/canonical-sphinx@f7c6a4da8897e705b742670459cf7c7921bf0af3 -
Branch / Tag:
refs/tags/0.6.0 - Owner: https://github.com/canonical
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
self-hosted -
Publication workflow:
release-publish.yaml@f7c6a4da8897e705b742670459cf7c7921bf0af3 -
Trigger Event:
push
-
Statement type: