sphinx_version_ref
This extension adds a single role to Sphinx. With :version-ref:`<ref>` one can substitute the version given in conf.py into <ref>.
Usage
In your conf.py file:
release = '1.4.1a5'
version = '.'.join(release.split('.')[:2])
extensions = ['sphinx_version_ref']
Where version can of course be any string. The following uses of <ref> then will be parsed as:
Entered as <ref> |
Parsed as |
|---|---|
https://docs.com/{version}/index.html |
`https://docs.com/1.4/index.html`_ |
{version} <http://github.com/user/project/tree/{version}> |
`1.4 <http://github.com/user/project/tree/1.4>`_ |
See version {version} <http://github.com/user/project/tree/{release}> |
`See version 1.4 <http://github.com/user/project/tree/1.4.1a5>`_ |
See the docs for more information.
Metadata
Release files for sphinx-version-ref 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sphinx-version-ref-0.1.0.tar.gz | 5.9 kB | Without provenance | Details for sphinx-version-ref-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sphinx_version_ref-0.1.0-py2-none-any.whl | Python 2 | none | any | Details for sphinx_version_ref-0.1.0-py2-none-any.whl |
Total release size: 9.5 kB
Release files / sphinx-version-ref-0.1.0.tar.gz
| Download URL | sphinx-version-ref-0.1.0.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c72d70a7c501e41859a8f9c35559821022f3bc0b1be2dcd06ada8013cbe2cdd2
|
|
BLAKE2b-256 checksum How to use checksums |
a19e587fd650393c88bd075f30442c089d311ed621c5980bf418f4acb5f334ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/2.7.12
|
Release files / sphinx_version_ref-0.1.0-py2-none-any.whl
| Download URL | sphinx_version_ref-0.1.0-py2-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
5748efe10b4b4dce2279341ec2f5b06d9c3119e08d3b13635252b1ba81d0c39b
|
|
BLAKE2b-256 checksum How to use checksums |
9df86b0ec805e2930339d82cf6c1ff91134c035ec5c265077b48f513db03480a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/2.7.12
|
Security for sphinx-version-ref 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.