diff options
author | 2022-05-11 04:08:42 +0400 | |
---|---|---|
committer | 2022-05-29 22:07:28 +0400 | |
commit | 4c9cad2552ebeb96f747467017ef3155595a9d1c (patch) | |
tree | da07cee79207d6160f5e6183ce69b2818063db83 /docs/_templates/base.html | |
parent | Restore Releases Changelog (diff) |
Add Sphinx-MultiVersion
Adds the sphinx-multiversion package to be used for generating docs
for all versions of the project, not just the latest. This includes
all the necessary configuration to make it work cleanly.
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'docs/_templates/base.html')
-rw-r--r-- | docs/_templates/base.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/_templates/base.html b/docs/_templates/base.html new file mode 100644 index 00000000..541dbd0b --- /dev/null +++ b/docs/_templates/base.html @@ -0,0 +1,12 @@ +{% extends "furo/base.html" %} + +{# Make sure the project name uses the correct version #} +{% if versions %} + {% if current_version == latest_version %} + {% set docstitle = "Latest (" + current_version.version + ")" %} + {% else %} + {% set docstitle = current_version.name %} + {% endif %} + + {% set docstitle = project + " " + docstitle %} +{% endif %} |