From 630957e45899b6497b7adab13435fc6960978863 Mon Sep 17 00:00:00 2001 From: Knative Prow Robot Date: Fri, 17 Dec 2021 07:39:18 -0800 Subject: [PATCH] fixes deprecated docs warning on v1.0+ (#4599) Co-authored-by: Paul S. Schweigert --- overrides/main.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/overrides/main.html b/overrides/main.html index 44768b11d..2a44000a6 100644 --- a/overrides/main.html +++ b/overrides/main.html @@ -4,6 +4,7 @@ {% endblock %} +{% block announce %} {% if config.extra.version_warning %}

⚠ You are viewing an archived snapshot of the documentation for Knative version: {{ config.extra.knative_version }}

@@ -11,11 +12,11 @@ Knative {{ config.extra.knative_version }} documentation is no longer actively maintained. The documentation you are currently viewing is a static snapshot. For up-to-date documentation, see the latest version.

-{% endif %} -{% block announce %} +{% else %}

Knative is 1.0! 🎉 Check out our announcement on the Knative Blog

+{% endif %} {% endblock %} {% block scripts %}