mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-06-26 02:18:21 -04:00
docs: add versions
target to produce multi-version docs
ci-kbs-docs-build-full
This commit is contained in:
parent
dc59378243
commit
c7084895d6
8 changed files with 271 additions and 12 deletions
11
docs/versjon/header.html
Normal file
11
docs/versjon/header.html
Normal 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 %}
|
Loading…
Add table
Add a link
Reference in a new issue