Skip to main content

Sphinx extension to build versionsed docs.

Project description

Python versions supported License

CI CI themes Documentation Status Package stability codestyle

Sphinx extension that allows building versioned docs for self-hosting. Supported on Linux and macOS.

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

How to use

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

╭─ 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]    │
│ --root-ref    -r                   TEXT  The branch/tag at the root of DESTINATION. Will also be in subdir. [default: main]  │
│ --prebuild        --no-prebuild          Disables the pre-builds; halves the runtime [default: prebuild]                     │
│ --branches    -b                   TEXT  Build docs for specific branches and tags [default: None]                           │
│ --quite           --no-quite             No output from `sphinx` [default: quite]                                            │
│ --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.1.tar.gz (132.8 kB view hashes)

Uploaded Source

Built Distribution

sphinx_versioned_docs-1.1-py3-none-any.whl (112.3 kB view hashes)

Uploaded Python 3

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