Skip to main content

Redirect labels that have been renamed or removed.

Project description

reLabel logo

reLabel is a tool for redirecting labels in your Sphinx documentation.

In documentation, we go to great lengths to redirect pages as they're moved, but we don't show the same care with Sphinx labels. If external documentation links to your project with Intersphinx, then removing labels will break references to them.

With reLabel, you can redirect removed labels to any existing label in your docs, preventing any surprise Intersphinx breakages.

Usage

Map removed labels to existing labels with the label_redirects option in your conf.py file:

label_redirects = {
    "old-label": "new-label"
}

Alternatively, list the label redirects in a separate file, formatted as valid JSON:

label_redirects = "labels.json"

Project setup

reLabel is published on PyPI and can be installed with:

pip install sphinx-relabel

After adding reLabel to your Python project, update your Sphinx's conf.py file to include reLabel as one of its extensions:

extensions = [
    "sphinx_relabel"
]

Community and support

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

If you're interested in contributing to reLabel, start with the contribution guide.

License and copyright

reLabel is released under the GPL-3.0 license.

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_relabel-0.0.3.tar.gz (514.1 kB view details)

Uploaded Source

Built Distribution

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

sphinx_relabel-0.0.3-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_relabel-0.0.3.tar.gz.

File metadata

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

File hashes

Hashes for sphinx_relabel-0.0.3.tar.gz
Algorithm Hash digest
SHA256 e92bd03c91f1330ccca7e30cb8cfd28a1f8e7491dad8c2ed6f09e90241e4dbed
MD5 0168d180d9935c6f1222384226785ea8
BLAKE2b-256 218679a01f81e2d95f2fb11534fcddf74415be98c4997f6baa45b5299b917a7b

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_relabel-0.0.3.tar.gz:

Publisher: release-publish.yaml on jahn-junior/sphinx-relabel

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_relabel-0.0.3-py3-none-any.whl.

File metadata

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

File hashes

Hashes for sphinx_relabel-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9f925577b8850c6049590729aa949abf046aa6bc80f42be3d9f62a0939b35193
MD5 4ce1af113718f8a0bf5aee2bfcabf3da
BLAKE2b-256 4690519ee800681203e8a7ba6f6d62e63b5474e81328ce1299983b8703ffe444

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_relabel-0.0.3-py3-none-any.whl:

Publisher: release-publish.yaml on jahn-junior/sphinx-relabel

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