Sphinx extension to build versionsed docs.
Project description
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
sphinx-versioned-docs in action!
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] │
│ --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 Disables the pre-builds; halves the runtime [default: prebuild] │
│ --branches -b TEXT Build docs 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`. [default: None] │
│ --quite --no-quite No 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.3.2.tar.gz
(343.6 kB
view hashes)
Built Distribution
Close
Hashes for sphinx-versioned-docs-1.3.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b895b5da7eeac1d3ba029686aa9e461804f58d2660581a8947c122fcdaf805d |
|
MD5 | b5cea340a961368c1ab3bf3e6e86fa92 |
|
BLAKE2b-256 | 9d6657bff7ca82d277efc33d2959b8310d49d5c710ad8ded8b19a583dadfd61a |
Close
Hashes for sphinx_versioned_docs-1.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae760bfdb9074ab04e1202653e35956607499ad427bb2cd5d82139b6666156c8 |
|
MD5 | feb69e6178ebb5735596d634d1c458e2 |
|
BLAKE2b-256 | e31a0555464c902415459b23674549559b85a4d9ace9fe36d851c7d392851b2a |