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/_plugins/generators/data/llm_metadata.rb b/app/_plugins/generators/data/llm_metadata.rb index 3ab1f518c1..f83b46e986 100644 --- a/app/_plugins/generators/data/llm_metadata.rb +++ b/app/_plugins/generators/data/llm_metadata.rb @@ -38,7 +38,8 @@ def frontmatter 'min_version' => @page.data['min_version'], 'tier' => @page.data['tier'], 'products' => resolve_names(@page.data['products'], 'products'), - 'tools' => resolve_names(@page.data['tools'], 'tools') + 'tools' => resolve_names(@page.data['tools'], 'tools'), + 'beta' => @page.data['beta'] } data['tags'] = @page.data['tags'] if @page.data.fetch('tags', []).any? data['canonical'] = @page.data['canonical?'] unless @page.data['canonical?'].nil? 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.