Last active
January 23, 2022 13:58
-
-
Save zonca/ad17f00a91355eaedd221abb34d75c11 to your computer and use it in GitHub Desktop.
Sphinx templates for sphinx-multiversion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if versions %} | |
<h3>{{ _('Releases') }}</h3> | |
<ul> | |
{%- for item in versions.tags %} | |
<li><a href="{{ item.url }}">{{ item.name }}</a></li> | |
{%- endfor %} | |
</ul> | |
<h3>{{ _('In Development') }}</h3> | |
<ul> | |
{%- for item in versions.branches %} | |
<li><a href="{{ item.url }}">{{ item.name }}</a></li> | |
{%- endfor %} | |
</ul> | |
{% endif %} | |
<h3>Page Contents</h3> | |
{{ toc }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends "!page.html" %} | |
{% block body %} | |
{% if current_version and latest_version and current_version != latest_version %} | |
<p> | |
<strong> | |
{% if current_version.is_released %} | |
You're reading an old version of this documentation. | |
If you want up-to-date information, please have a look at <a href="{{ vpathto(latest_version.name) }}">{{latest_version.name}}</a>. | |
{% else %} | |
You're reading the documentation for a development version. | |
For the latest released version, please have a look at <a href="{{ vpathto(latest_version.name) }}">{{latest_version.name}}</a>. | |
{% endif %} | |
<strong> | |
</p> | |
{% endif %} | |
{{ super() }} | |
{% endblock %}% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment