Skip to content

Commit

Permalink
import sphinx template
Browse files Browse the repository at this point in the history
  • Loading branch information
zonca committed Jul 16, 2020
1 parent 21edbc1 commit b4fc5f7
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/_templates/localtoc.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{% 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 }}
17 changes: 17 additions & 0 deletions docs/_templates/page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{% 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 %}%

0 comments on commit b4fc5f7

Please sign in to comment.