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.4.tar.gz (514.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_relabel-0.0.4-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sphinx_relabel-0.0.4.tar.gz
  • Upload date:
  • Size: 514.2 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.4.tar.gz
Algorithm Hash digest
SHA256 bff188267885f0d44dee7e11b134abf7bb9344e13d59cb68441d2c83d9881157
MD5 afb83b4d1295cad9b6ff45363fb3e97d
BLAKE2b-256 81419c0bd1efa4099863398290ab8b6d906ff765e71b94e0d8ab5085577f683c

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_relabel-0.0.4.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.4-py3-none-any.whl.

File metadata

  • Download URL: sphinx_relabel-0.0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6c58913ca6df5fe36b5bc9b780d91c64ae3d2cf4acd234efb22a98fcbbe6d4bd
MD5 f7355a23f9d1edd0b2090ec9ddab5a85
BLAKE2b-256 28e92c5ca2340af1cf03c007419b473d5bba8f67f12af9633a6fa5062450742c

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_relabel-0.0.4-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