diff --git a/docs/_templates/version-warning.html b/docs/_templates/version-warning.html new file mode 100644 index 0000000000..c24cdacffa --- /dev/null +++ b/docs/_templates/version-warning.html @@ -0,0 +1,23 @@ +{% if flag != "manual" %} +
Caution
++ You're viewing documentation for a previous version. + Switch to the latest stable version. +
+Caution
++ {% if current_version.name in theme_versions_unstable %} + You're viewing documentation for an unstable version of {{ project }}. + {% elif current_version.name in theme_versions_deprecated %} + You're viewing documentation for a deprecated version of {{ project }}. + {% else %} + You're viewing documentation for a previous version of {{ project }}. + {% endif %} + Switch to the latest stable version. +
+