Skip to main content

Add support for multiple versions to sphinx

Project description

sphinx-multiversion

Fork of https://github.com/Holzhaus/sphinx-multiversion for the Scylla Project.

Sphinx extension for building self-hosted versioned docs.

Original documentation can be found at: https://holzhaus.github.io/sphinx-multiversion/

Fork additions

Prebuild and postbuild commands

The fork introduces the possibility to run custom commands before and after building the docs with the option --pre-build and --post-build.

This could be useful to prepare the docs repository before running sphinx-build, debug the execution, or even generate versioned documentation using other builders.

For example, imagine that you want to build versioned docs written in Sphinx, but the API reference is generated with JavaDoc. This option enables the generation of both versioned docs to host them under the same folder using GitHub Pages.

Here's an example showing the directory where the build command is running:

sphinx-multiversion docs build/html --pre-build pwd

You can pass multiple commands by adding extra --pre-build tags. The commands run in order, from left to right:

sphinx-multiversion docs build/html --pre-build pwd --pre-build ls

Rename latest version URL

The smv_latest_version setting determines which is the latest version. Setting this option could be useful to show a warning when users are not reading the latest version.

You can override the latest version output directory with smv_rename_latest_version.

Here's an example:

smv_latest_version = 'x.y.z'         # Use the branch/tag name
smv_rename_latest_version = 'latest' # Use the commit hash

Maintenance

This fork will be maintained until the following issues are solved:

License

BSD 2-Clause License

Copyright (c) 2020, Jan Holthuis jan.holthuis@ruhr-uni-bochum.de All rights reserved.

Modifications (see "Fork Additions") 2020, David Garcia hi@davidgarcia.dev

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-multiversion-scylla-0.2.12.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

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

sphinx_multiversion_scylla-0.2.12-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file sphinx-multiversion-scylla-0.2.12.tar.gz.

File metadata

  • Download URL: sphinx-multiversion-scylla-0.2.12.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.4 tqdm/4.63.0 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.6

File hashes

Hashes for sphinx-multiversion-scylla-0.2.12.tar.gz
Algorithm Hash digest
SHA256 c61eb2de5a522c41d320325594d9789e220e9968f6201aaed464c35ed54dbcec
MD5 fb5cc1bf28645020bc266142ceb4b5c4
BLAKE2b-256 9d681ef8e8b2ee6d7d3c5abb08032f249304c7899426c912041362d9b97e31ae

See more details on using hashes here.

File details

Details for the file sphinx_multiversion_scylla-0.2.12-py3-none-any.whl.

File metadata

  • Download URL: sphinx_multiversion_scylla-0.2.12-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.4 tqdm/4.63.0 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.6

File hashes

Hashes for sphinx_multiversion_scylla-0.2.12-py3-none-any.whl
Algorithm Hash digest
SHA256 cc1a6e65879c9f5118e2243d158070639b0da6738366814c0407dde84dfdeba5
MD5 b845a1b305254cac0332f63592729f3e
BLAKE2b-256 97e470f2ae427e0c060a9721c1ca71d476913f45cc5c177b4d6985c1645ad291

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