diff options
author | 2022-05-11 04:08:42 +0400 | |
---|---|---|
committer | 2022-05-29 22:07:28 +0400 | |
commit | 4c9cad2552ebeb96f747467017ef3155595a9d1c (patch) | |
tree | da07cee79207d6160f5e6183ce69b2818063db83 /docs/pages/versions.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/pages/versions.html')
-rw-r--r-- | docs/pages/versions.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/docs/pages/versions.html b/docs/pages/versions.html new file mode 100644 index 00000000..f4564dbf --- /dev/null +++ b/docs/pages/versions.html @@ -0,0 +1,23 @@ +{% extends "page.html" %} +{% set title = "Versions" %} + +{% block content -%} + {% if versions %} + <h1>Versions</h1> + <dl> + <dt>Documentation is available for the following versions:</dt> + <dd><ul> + {# List all avaialble versions #} + {% for version in versions | reverse %} + <li> + <a class="reference internal" href="{{ version.url }}">{{ version.name }}</a> + {{ "(current)" if version == current_version }} + {{ "- latest" if version == latest_version }} + </li> + {% endfor %} + </ul></dd> + </dl> + {% else %} + <h1>No version information available!</h1> + {% endif %} +{%- endblock %} |