docs: add a warning on latest version of docs (#3570)

This commit is contained in:
jack1142 2020-02-19 03:53:07 +01:00 committed by GitHub
parent ef101ccb9a
commit 9a8c134c97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,14 @@
{% extends '!layout.html' %} {% extends '!layout.html' %}
{% block document %} {% block document %}
{% if version_slug == 'latest' %}
<div class="admonition warning">
<p class="first admonition-title">Warning</p>
<p class="last">
This document is for Red's development version, which can be significantly different from previous releases.
If you're a regular user, you should read the <a href="{{ versions['stable'] }}">Red documentation for the current stable release</a>.
</p>
</div>
{% endif %}
{{ super() }} {{ super() }}
<a href="https://github.com/Cog-Creators/Red-DiscordBot"> <a href="https://github.com/Cog-Creators/Red-DiscordBot">
<img style="position: absolute; top: 0; right: 0; border: 0;" <img style="position: absolute; top: 0; right: 0; border: 0;"