docs: add versions target to produce multi-version docs

ci-kbs-docs-build-full
This commit is contained in:
InsanePrawn 2022-12-15 07:07:53 +01:00
parent dc59378243
commit c7084895d6
8 changed files with 271 additions and 12 deletions

11
docs/versjon/header.html Normal file
View file

@ -0,0 +1,11 @@
{% if stable and (stable.name|default("")) != current %}
{% if page in stable.html_files %}
{% set stable_path = page_root + docs_path[stable.name] + "/" + page %}
{% else %}
{% set stable_path = page_root + docs_path[stable.name] %}
{% endif %}
<p class="versjon-{% if is_semver %}old{% else %}dev{% endif %}-warning">
<strong>Warning:</strong> These docs are for version <b>{{current}}</b>. The docs for the latest stable version are at
<b> <a href="{{ stable_path }}">{{ stable.name }}</a> </b>.
</p>
{% endif %}