From ca949703567c669adae1e084aa751a9a8c767464 Mon Sep 17 00:00:00 2001 From: Max Hilbrunner Date: Sat, 1 Apr 2023 00:40:18 +0200 Subject: [PATCH] Less intrusive 4.0 update state info (#7100) * Less intrusive 4.0 update state info --------- Co-authored-by: Yuri Sizov <11782833+YuriSizov@users.noreply.github.com> --- _templates/layout.html | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/_templates/layout.html b/_templates/layout.html index 65225fbf3..268c4ca38 100644 --- a/_templates/layout.html +++ b/_templates/layout.html @@ -28,14 +28,14 @@ {%- block document %}
{% if godot_is_latest or godot_show_article_status %} -
+
{% if godot_is_latest %}
-

Attention

+

Attention: Here be dragons

- You are reading the latest - (unstable) version of this documentation, which may document features not available - or compatible with Godot 3.x. + This is the latest + (unstable) version of this documentation, which may document features + not available in or compatible with released stable versions of Godot.

{% endif %} - {% if godot_show_article_status %} + {% if godot_show_article_status and not godot_is_latest %}
+ {% if meta and meta.get('article_outdated') == 'True' %}

Work in progress

- Godot documentation is being updated to reflect the latest changes in version - {{ godot_version }}. Some documentation pages may - still state outdated information. This banner will tell you if you're reading one of such pages. + The content of this page was not yet updated for Godot + {{ godot_version }} + and may be outdated. If you know how to improve this page or you can confirm + that it's up to date, feel free to open a pull request.

+ {% else %} +

Up to date

- {% if meta and meta.get('article_outdated') == 'True' %} - The contents of this page can be outdated. If you know how to improve this page or you can confirm - that it's up to date, feel free to open a pull request. - {% else %} - The contents of this page are up to date. If you can still find outdated information, please - open an issue. - {% endif %} + This page is up to date for Godot {{ godot_version }}. + If you still find outdated information, please open an issue.

+ {% endif %}
{% endif %}