{% if 'upgrade/upgrade-guides/' in pagename %} {# Do not show any version warning for upgrade guide pages #} {% elif 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.