From a170efd59345cd2a9fa54e0953c8240631718217 Mon Sep 17 00:00:00 2001 From: Madelyn Olson Date: Mon, 11 Aug 2025 12:08:20 -0700 Subject: [PATCH 1/2] Remove deprecation wording from top of page Signed-off-by: Madelyn Olson --- templates/command-page.html | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/templates/command-page.html b/templates/command-page.html index 5b4e0980..50c31e1c 100644 --- a/templates/command-page.html +++ b/templates/command-page.html @@ -25,9 +25,6 @@ {% set command_title = command_obj_name %} {% endif %} {% set command_title = command_title | upper %} - {% if command_data_obj.deprecated_since %} - {% set deprecated = "Deprecated" %} - {% endif %} {% else %} {% set command_data_error = "ERROR. Command JSON Not loaded." %} {% endif %} @@ -36,7 +33,7 @@ {% block subhead_content%} {% if command_title%}
-

{{ command_title }} {% if deprecated %} {{ deprecated }}{% endif %}

+

{{ command_title }}

{% endif %} {% endblock subhead_content%} From bf4b067610c7a497a9345363968cb740fa90265d Mon Sep 17 00:00:00 2001 From: Madelyn Olson Date: Mon, 11 Aug 2025 12:27:29 -0700 Subject: [PATCH 2/2] Still deprecate slaveof --- templates/command-page.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/templates/command-page.html b/templates/command-page.html index 50c31e1c..96d554ea 100644 --- a/templates/command-page.html +++ b/templates/command-page.html @@ -25,6 +25,9 @@ {% set command_title = command_obj_name %} {% endif %} {% set command_title = command_title | upper %} + {% if command_data_obj.deprecated_since and ("MASTER" in command_title or "SLAVE" in command_title) %} + {% set deprecated = "Deprecated" %} + {% endif %} {% else %} {% set command_data_error = "ERROR. Command JSON Not loaded." %} {% endif %} @@ -33,7 +36,7 @@ {% block subhead_content%} {% if command_title%}
-

{{ command_title }}

+

{{ command_title }} {% if deprecated %} {{ deprecated }}{% endif %}

{% endif %} {% endblock subhead_content%} @@ -168,7 +171,7 @@

{{ command_title }}

ERROR. Command description not loaded
{% endif %} {% if command_data_obj.replaced_by %} -

Deprecation advice

+

{% if deprecated %}Deprecation advice{% else %}Similar command{% endif %}

Instead of using {{ command_title }} use
{{ command_data_obj.replaced_by | markdown | safe }}
{% endif %}