From 3b34a9c7d0b8419b429db188e4405e07aa265ccf Mon Sep 17 00:00:00 2001 From: lena-larionova Date: Fri, 15 May 2026 15:47:30 -0700 Subject: [PATCH] beta banner --- .../gateway/configure-conditional-plugin-execution.md | 3 --- app/_includes/banners/stage.html | 4 ++++ app/_includes/layouts/main.html | 5 ++++- app/gateway/plugins/expressions.md | 3 --- 4 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 app/_includes/banners/stage.html diff --git a/app/_how-tos/gateway/configure-conditional-plugin-execution.md b/app/_how-tos/gateway/configure-conditional-plugin-execution.md index db68d46be9..0927bf6d52 100644 --- a/app/_how-tos/gateway/configure-conditional-plugin-execution.md +++ b/app/_how-tos/gateway/configure-conditional-plugin-execution.md @@ -65,9 +65,6 @@ faqs: When `result=false`, the plugin was skipped for that request. --- -{:.warning} -> This feature is currently in [beta](/stages-of-software-availability/#beta) and should not be used in a production environment. - ## Add a plugin with a condition Add the Request Termination plugin to your Route with a `condition` expression. diff --git a/app/_includes/banners/stage.html b/app/_includes/banners/stage.html new file mode 100644 index 0000000000..84f668c9d6 --- /dev/null +++ b/app/_includes/banners/stage.html @@ -0,0 +1,4 @@ +{%- if include.beta -%}{%- assign type = 'beta' -%}{%- endif -%} +{%- if include.tech_preview -%}{%- assign type = 'tech_preview' -%}{%- endif -%} +{%- assign stage = site.data.stages[type] -%} +
This feature is currently in {{ stage.text }} and should not be used in a production environment.
diff --git a/app/_includes/layouts/main.html b/app/_includes/layouts/main.html index acc929956b..4b0ca43a21 100644 --- a/app/_includes/layouts/main.html +++ b/app/_includes/layouts/main.html @@ -51,6 +51,10 @@

{{ page.title | liquify }} {% contentblock nav_header %} {% endifhascontent %} + + {%- if page.beta == true or page.tech_preview == true -%} + {%- include_cached banners/stage.html beta=page.beta tech_preview=page.tech_preview -%} + {%- endif -%} {% if page.layout == 'with_aside' or layout.layout == 'with_aside' %} @@ -58,6 +62,5 @@

{{ page.title | liquify }} {% include layouts/aside.html mobile=true %} {% endif %} - {{ content }} \ No newline at end of file diff --git a/app/gateway/plugins/expressions.md b/app/gateway/plugins/expressions.md index a0fcffb62d..eb41f78c30 100644 --- a/app/gateway/plugins/expressions.md +++ b/app/gateway/plugins/expressions.md @@ -53,9 +53,6 @@ related_resources: --- -{:.warning} -> This feature is currently in [beta](/stages-of-software-availability/#beta) and should not be used in a production environment. - Plugin conditions allow you to attach an optional `condition` expression to any plugin. When a request comes in, {{site.base_gateway}} evaluates the expression immediately before the plugin's `access` phase. If the expression evaluates to `true`, the plugin runs normally. If it evaluates to `false`, the plugin is skipped for that request.