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.1.tar.gz (513.8 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.1-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sphinx_relabel-0.0.1.tar.gz
  • Upload date:
  • Size: 513.8 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.1.tar.gz
Algorithm Hash digest
SHA256 d0556608a65d05c4ca393147dced183d4d76e563e72bb6039382dd553b195cad
MD5 657fc68c3b1a56ee514402b248e93a15
BLAKE2b-256 b3ccb5e0670daec0f574926f7b1f42e91e922f3b5d67315845220cb98d880267

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: sphinx_relabel-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 16.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b86cb132374ba26333f6617ffd3a70a7549d206986cec9bd406acf37ae5a4e15
MD5 c69f4cc2932344f4de2462a17c0bbedf
BLAKE2b-256 92f46925752dccf9a03cb49d1140091da33a3635a87ff6551cfa742ba9fccff6

See more details on using hashes here.

Provenance

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