Skip to main content

Canonical's custom Sphinx roles.

Project description

sphinx-roles

sphinx-roles houses the literalref, spellexception, and none roles.

Basic usage

literalref

To add a monospaced reference to your document, pass the target or URL to the literalref role:

:literalref:`link text <ref-target>`

:literalref:`link text <https://example.com>`

spellexception

To exempt a string from spell checking, wrap it in the spellexception role:

:spellexception:`Lorem ipsum`

none

To prevent a string from being rendered in the document, wrap it in the none role:

:none:`This text isn't rendered.`

Project setup

sphinx-roles is published on PyPI and can be installed with:

pip install sphinx-roles

After adding sphinx-roles to your Python project, update your Sphinx's conf.py file to include sphinx_roles as an extension:

extensions = [
    "sphinx_roles"
]

Community and support

You can report any issues or bugs on the project's GitHub repository.

sphinx-roles is covered by the Ubuntu Code of Conduct.

License and copyright

sphinx-roles is released under the GPL-3.0 license.

© 2025 Canonical Ltd.

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

sphinx_roles-0.0.1.tar.gz (80.2 kB view details)

Uploaded Source

Built Distribution

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

sphinx_roles-0.0.1-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_roles-0.0.1.tar.gz.

File metadata

  • Download URL: sphinx_roles-0.0.1.tar.gz
  • Upload date:
  • Size: 80.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sphinx_roles-0.0.1.tar.gz
Algorithm Hash digest
SHA256 4ab4af7992a93bb88b839e487982659e8238ce4b79b79a157d3cb08493889f77
MD5 2256edecb595f149ef18675020f8679b
BLAKE2b-256 8ec54eadbcf4c483079eabd1157a1d95bed32ded2ea190599e95a87040e601a1

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_roles-0.0.1.tar.gz:

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

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

File details

Details for the file sphinx_roles-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: sphinx_roles-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 17.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sphinx_roles-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 059f09b6c9a75ca70d4ff6e32d01de79d4444e249b1afb67200be7319cdd1bcc
MD5 185de348db1bc5ffa00a5ad985a024f4
BLAKE2b-256 cd09ef8e1bc21dde5191d8b5612765ba5f2c8f465d83f5f5f8b3d0a3197b990c

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_roles-0.0.1-py3-none-any.whl:

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

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