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 ScyllaDB 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 pw

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

sphinx-multiversion docs build/html --pre-build pwd --pre-build ls --post-build "cat file.txt"

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

Add support for custom tags

See https://github.com/dgarcia360/sphinx-multiversion/pull/4

Fix Git LFS error

See https://github.com/scylladb/scylla-enterprise/issues/3414

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.20.tar.gz (11.2 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.20-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for sphinx-multiversion-scylla-0.2.20.tar.gz
Algorithm Hash digest
SHA256 c5dc2a8c70d5183019e40167b0317901b1acd30e0b0538d21ccdb12495fd29b8
MD5 e8b366b31ebe56527a39af6f3cbe3fd8
BLAKE2b-256 ed5459c950e04868c3b4a61c7a6fba7caeda1ff153003acfde7e1fef9665e7ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sphinx_multiversion_scylla-0.2.20-py3-none-any.whl
Algorithm Hash digest
SHA256 c3cc6e14366012a0b27e189f439132b198a7f8c5d4ae767b99703a37b2648186
MD5 ff0cdf8f3755ffe7052be936c79ffd91
BLAKE2b-256 92df6899dc92ae229969aed199b86674222357976a3dc5589332787e31a63ee6

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