Add a warning banner when not reading the stable docs

This commit is contained in:
kaiyou
2018-10-16 23:19:48 +02:00
parent 13e3862ca7
commit 53b9c031c9
2 changed files with 10 additions and 0 deletions

9
docs/_templates/layout.html vendored Normal file
View File

@@ -0,0 +1,9 @@
{% extends "!layout.html" %}
{% block document %}
{% if version != stable_version %}
<div class="wy-alert info">
<p>You are currently browsing documentation for the <b>{{ version }}</b> branch. Documentation for the stable <b>{{ stable_version }}</b> branch can be found <a href="/{{ stable_version }}/">here</a>.</p>
</div>
{% endif %}
{{ super() }}
{% endblock %}