diff --git a/docs/_templates/localtoc.html b/docs/_templates/localtoc.html new file mode 100644 index 0000000..efc4458 --- /dev/null +++ b/docs/_templates/localtoc.html @@ -0,0 +1,17 @@ +{% if versions %} +

{{ _('Releases') }}

+ +

{{ _('In Development') }}

+ +{% endif %} + +

Page Contents

+{{ toc }} diff --git a/docs/_templates/page.html b/docs/_templates/page.html new file mode 100644 index 0000000..665c35f --- /dev/null +++ b/docs/_templates/page.html @@ -0,0 +1,17 @@ +{% extends "!page.html" %} +{% block body %} +{% if current_version and latest_version and current_version != latest_version %} +

+ + {% 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 {{latest_version.name}}. + {% else %} + You're reading the documentation for a development version. + For the latest released version, please have a look at {{latest_version.name}}. + {% endif %} + +

+{% endif %} +{{ super() }} +{% endblock %}%