Skip to main content

Sphinx extension to build versionsed docs.

Project description

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.                                                                        │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinx-versioned-docs-1.4.tar.gz (346.8 kB view details)

Uploaded Source

Built Distribution

sphinx_versioned_docs-1.4-py3-none-any.whl (115.8 kB view details)

Uploaded Python 3

File details

Details for the file sphinx-versioned-docs-1.4.tar.gz.

File metadata

  • Download URL: sphinx-versioned-docs-1.4.tar.gz
  • Upload date:
  • Size: 346.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.18

File hashes

Hashes for sphinx-versioned-docs-1.4.tar.gz
Algorithm Hash digest
SHA256 d060d7f6201ccc6d2db11a7c6f47dd0564a151b878a4a69aa4f94db4c4f835ca
MD5 42e799d8fa272a32a3449e2c4990d9ee
BLAKE2b-256 3b68c4ddc09192b4c4856f36da6f0f5895b1eb7805ba898fb4f298e4da6fe823

See more details on using hashes here.

File details

Details for the file sphinx_versioned_docs-1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_versioned_docs-1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 04c8d7ca39fc334448309448117eaec131d6c090fe978ccf063990a164c16481
MD5 d2d3b37c53411d2541b9421befeefacc
BLAKE2b-256 b341e22e75da950848e5776f6f95d84cca9e4250db1b51cf05d849b3b406fb2c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page