Redirect labels that have been renamed or removed.
Project description
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0556608a65d05c4ca393147dced183d4d76e563e72bb6039382dd553b195cad
|
|
| MD5 |
657fc68c3b1a56ee514402b248e93a15
|
|
| BLAKE2b-256 |
b3ccb5e0670daec0f574926f7b1f42e91e922f3b5d67315845220cb98d880267
|
Provenance
The following attestation bundles were made for sphinx_relabel-0.0.1.tar.gz:
Publisher:
release-publish.yaml on jahn-junior/sphinx-relabel
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_relabel-0.0.1.tar.gz -
Subject digest:
d0556608a65d05c4ca393147dced183d4d76e563e72bb6039382dd553b195cad - Sigstore transparency entry: 1127936384
- Sigstore integration time:
-
Permalink:
jahn-junior/sphinx-relabel@1c586fe2420d61f79e5de4f14f2f54f9a3e69853 -
Branch / Tag:
refs/tags/0.0.1 - Owner: https://github.com/jahn-junior
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
self-hosted -
Publication workflow:
release-publish.yaml@1c586fe2420d61f79e5de4f14f2f54f9a3e69853 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b86cb132374ba26333f6617ffd3a70a7549d206986cec9bd406acf37ae5a4e15
|
|
| MD5 |
c69f4cc2932344f4de2462a17c0bbedf
|
|
| BLAKE2b-256 |
92f46925752dccf9a03cb49d1140091da33a3635a87ff6551cfa742ba9fccff6
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_relabel-0.0.1-py3-none-any.whl -
Subject digest:
b86cb132374ba26333f6617ffd3a70a7549d206986cec9bd406acf37ae5a4e15 - Sigstore transparency entry: 1127936622
- Sigstore integration time:
-
Permalink:
jahn-junior/sphinx-relabel@1c586fe2420d61f79e5de4f14f2f54f9a3e69853 -
Branch / Tag:
refs/tags/0.0.1 - Owner: https://github.com/jahn-junior
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
self-hosted -
Publication workflow:
release-publish.yaml@1c586fe2420d61f79e5de4f14f2f54f9a3e69853 -
Trigger Event:
push
-
Statement type: