sphinx_versioning
A Sphinx extension to manage versioned documentation.
Overview
sphinx-versioning is a Sphinx extension that manages versioned documentation, allowing users to maintain multiple versions of their documentation with ease. This plugin makes it simple to create, view, and navigate between different versions, providing an enhanced user experience.
Features
-
Version Creation: Easily create new versions of your documentation using the command-line interface.
-
Version Deletion: Manage your existing versions, including the ability to delete obsolete ones.
-
Version Navigation: Conveniently navigate between different versions through a drop-down menu.
-
Virtual Environment Support: Virtual Environment Support: Optionally use a virtual environment when building a new version, ensuring that documentation is built with a consistent set of dependencies and avoid.
Installation
pip install sphinx-versioning
Usage
Configuration in Sphinx
- In your Sphinx project's
conf.pyfile, add 'sphinx_versioning' to the extensions list:
extensions = [
...
'sphinx_versioning',
...
]
- Update your
conf.pyfile to include thesphinx_versioning.htmltemplate in thehtml_sidebarsconfiguration:
html_sidebars = {
'**': [
# ... other sidebars ...
# Suggest putting the extension above the search bar for better UX.
'sidebar/sphinx_versioning.html',
]
}
- If you haven't set it already, set
html_static_pathas follows:
html_static_path = ['_static']
Command Line Interface
The sphinx-version command-line tool provides functionality to manage versions:
Create a New Version based on the current source files:
sphinx-version VERSION_NAME
Where VERSION_NAME is a user-defined name for the documentation version (e.g., 'v1.0').
Create a New Version using a Virtual Environment:
To create a new version using a virtual environment and install dependencies from specific requirements files:
sphinx-version VERSION_NAME --venv --requirements req1.txt,req2.txt
Note: The
--requirementsflag expects the requirements file names. These files should be located in the same directory as the Sphinx documentation. The--requirementsflag should always be used with the--venvflag.
Why use a virtual environment?: Using a virtual environment ensures that each version of your documentation is built with a consistent set of dependencies. This can help avoid unexpected changes or issues that might arise if Sphinx or its extensions/themes update over time.
Delete an Existing Version:
sphinx-version VERSION_NAME -d
Metadata
Release files for sphinx-versioning 0.1.5
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-versioning-0.1.5.tar.gz | 7.6 kB | Without provenance | Details for sphinx-versioning-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sphinx_versioning-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for sphinx_versioning-0.1.5-py3-none-any.whl |
Total release size: 15.0 kB
Release files / sphinx-versioning-0.1.5.tar.gz
| Download URL | sphinx-versioning-0.1.5.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
40f3cd0f282cd0ad08f96650ef0caf228c4a001c72b59a0b0eca95024a3d7bc8
|
|
BLAKE2b-256 checksum How to use checksums |
c6483820aba4dd919ffbbeef9ff81a987b3826d75031282e2f730901138cc583
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Release files / sphinx_versioning-0.1.5-py3-none-any.whl
| Download URL | sphinx_versioning-0.1.5-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
40cf15d00ab41ae8b38340d4835b326170e3e728143d9fae6f9af263965e22be
|
|
BLAKE2b-256 checksum How to use checksums |
479961f321f7e1dc46ecadc00e83a4f8e706957d7a3484556eac781bfd85c7ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Security for sphinx-versioning 0.1.5
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.