collective.sphinxextexternalpackageversion
This Collective Sphinx extension, collective.sphinxextexternalpackageversion, shows the version of an external package through a special syntax in the documentation.
You can find the documentation at the following URL: https://collective-sphinxextexternalpackageversion.readthedocs.io/en/stable/ (currently broken).
To get the latest stable version of a GitHub repository that is in a release on GitHub, place {{ version x/y }} in your documentation, where x/y is the title of the GitHub repository, x is the owner, y is the actual repository name. For example:
Here is a code block:
The latest version of nvm is {{ version nvm-sh/nvm }}.
This code block will output, as of the time of writing this documentation:
The latest version of nvm is 0.40.8.
Note that this works through a RegEx and will work in code blocks and included files too. This works only for public repos that actually have a release.
Currently there is no way to escape the syntax to show in your docs the literal string {{ version x/y }}.
How to use
To install the extension, add:
collective-sphinxextexternalpackageversion
to your requirements.txt or requirements-docs.txt or to a similar file. Then, in your conf.py file, add the following string to the extensions list:
"collective.sphinxextexternalpackageversion"
to register the extension with Sphinx. Then run commands similar to:
make docs-distclean make docs-livehtml
or:
make distclean make livehtml
How to contribute
See the CONTRIBUTING.md file for instructions on how to contribute to this project.
Versions
See the changelog here.
Metadata
Release files for collective-sphinxextexternalpackageversion 0.2.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 |
|---|---|---|---|---|
| collective_sphinxextexternalpackageversion-0.2.0.tar.gz | 4.2 kB | Without provenance | Details for collective_sphinxextexternalpackageversion-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| collective_sphinxextexternalpackageversion-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for collective_sphinxextexternalpackageversion-0.2.0-py3-none-any.whl |
Total release size: 9.2 kB
Release files / collective_sphinxextexternalpackageversion-0.2.0.tar.gz
| Download URL | collective_sphinxextexternalpackageversion-0.2.0.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5de4f4b6bafb61028cfd938627a7d048fbc6f7a5ba5772a383f66e3d894dcc95
|
|
BLAKE2b-256 checksum How to use checksums |
89971a149d21b158279e608b7e02d57e19f72f45aed8c3e3d669dc2ffa23d3ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / collective_sphinxextexternalpackageversion-0.2.0-py3-none-any.whl
| Download URL | collective_sphinxextexternalpackageversion-0.2.0-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ecd97b1dc2d78f33d1f7f66dc933d289c6136c594a56a921de2591a2c1914ef8
|
|
BLAKE2b-256 checksum How to use checksums |
fcfc36c8f4432c0e57d499823d9f57d387afdaa0c05930c5541a819376ae4351
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for collective-sphinxextexternalpackageversion 0.2.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.