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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: sphinx-versioned-docs-1.1.tar.gz
  • Upload date:
  • Size: 132.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.16

File hashes

Hashes for sphinx-versioned-docs-1.1.tar.gz
Algorithm Hash digest
SHA256 fb6e767ce17dca4ba1c552c8d196af7c90c73916803866243129658f4a1dafa8
MD5 eb30b090d1140c982120e1847d79e3ac
BLAKE2b-256 2a323ef480933d399f94d4ce5f58dbadbcfbff19401061e0f650c68daf9647c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sphinx_versioned_docs-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 56fe837203aa8eb2c59bc69337e2faf90fafddb89c64559b17cc15c806f706e6
MD5 a0648897a545e78c3d4c346e331bb80d
BLAKE2b-256 1804613615b6fe0b7e43b643c6b6bf4c09efb02122f02901d20a2d74c99aa143

See more details on using hashes here.

Supported by

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