Skip to main content

sphinx-versioned-docs

Python versions supported

Package stability

CI

Documentation Status

License

codestyle

PyPI - Version

PyPI - Downloads

Conda - Version

Anaconda - Downloads

Sphinx extension that allows building versioned docs for self-hosting.

It works by producing docs for all(specified) branches in separate folders and injects a readthedocs-like version selector menu/badge.

This project is a fork of Smile-SA/sphinx-versions with significant changes.

Get started using the documentation

sphinx-versioned-docs in action!

sphinx-rtd-theme with a version selector menu

How to use

sphinx-versioned --help
Usage: sphinx-versioned [OPTIONS]

Create sphinx documentation with a version selector menu.

╭─ Options ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --chdir                                          TEXT  Make this the current working directory before running. [default: None]                            │
│ --output                  -O                     TEXT  Output directory. [default: docs/_build]                                                           │
│ --git-root                                       TEXT  Path to directory in the local repo. Default is CWD.                                               │
│ --local-conf                                     TEXT  Path to conf.py for sphinx-versions to read config from. [default: docs/conf.py]                   │
│ --reset-intersphinx       -rI                          Reset intersphinx mapping; acts as a patch for issue #17                                           │
│ --sphinx-compatibility    -Sc                          Adds compatibility for older sphinx versions by monkey patching certain functions.                 │
│ --prebuild                      --no-prebuild          Pre-builds the documentations; Use `--no-prebuild` to half the runtime. [default: prebuild]        │
│ --branch                  -b                     TEXT  Build documentation for specific branches and tags. [default: None]                                │
│ --main-branch             -m                     TEXT  Main branch to which the top-level `index.html` redirects to. Defaults to `main`.                  │
│ --floating-badge,--badge                               Turns the version selector menu into a floating badge.                                             │
│ --quite                         --no-quite             Silent `sphinx`. Use `--no-quite` to get build output from `sphinx`. [default: quite]              │
│ --verbose                 -v                           Passed directly to sphinx. Specify more than once for more logging in sphinx.                      │
│ --log                     -log                   TEXT  Provide logging level. Example --log debug, default=info [default: info]                           │
│ --force                                                Force branch selection. Use this option to build detached head/commits. [Default: False]           │
│ --help                                                 Show this message and exit.                                                                        │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Metadata

Release files for sphinx-versioned-docs 1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sphinx-versioned-docs 1.4
File Size Uploaded Provenance Actions
sphinx-versioned-docs-1.4.tar.gz 346.8 kB Without provenance Details for sphinx-versioned-docs-1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sphinx-versioned-docs 1.4
File Interpreter ABI Platform Actions
sphinx_versioned_docs-1.4-py3-none-any.whl Python 3 none any Details for sphinx_versioned_docs-1.4-py3-none-any.whl

Total release size: 462.5 kB

Release files / sphinx-versioned-docs-1.4.tar.gz

Download URL sphinx-versioned-docs-1.4.tar.gz
Size 346.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d060d7f6201ccc6d2db11a7c6f47dd0564a151b878a4a69aa4f94db4c4f835ca
BLAKE2b-256 checksum
How to use checksums
3b68c4ddc09192b4c4856f36da6f0f5895b1eb7805ba898fb4f298e4da6fe823
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.18

Release files / sphinx_versioned_docs-1.4-py3-none-any.whl

Download URL sphinx_versioned_docs-1.4-py3-none-any.whl
Size 115.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
04c8d7ca39fc334448309448117eaec131d6c090fe978ccf063990a164c16481
BLAKE2b-256 checksum
How to use checksums
b341e22e75da950848e5776f6f95d84cca9e4250db1b51cf05d849b3b406fb2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.18

Security for sphinx-versioned-docs 1.4

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page