From e173bf4940d269941225752935a30c0770b4df7f Mon Sep 17 00:00:00 2001 From: Tim Bannister Date: Sat, 28 May 2022 17:17:09 +0100 Subject: [PATCH] Add warning about Katacoda shutdown --- data/i18n/en/en.toml | 3 +++ layouts/docs/baseof.html | 5 +++++ layouts/partials/katacoda-removal.html | 7 +++++++ 3 files changed, 15 insertions(+) create mode 100644 layouts/partials/katacoda-removal.html diff --git a/data/i18n/en/en.toml b/data/i18n/en/en.toml index 6c57982f9b..3d164e1841 100644 --- a/data/i18n/en/en.toml +++ b/data/i18n/en/en.toml @@ -96,6 +96,9 @@ other = "email address" [javascript_required] other = "JavaScript must be [enabled](https://www.enable-javascript.com/) to view this content" +[katacoda_removal_warning] +other = """This online tutorial on this page uses functionality that will [not be available](https://www.oreilly.com/online-learning/leveraging-katacoda-technology.html) past .""" + [latest_release] other = "Latest Release:" diff --git a/layouts/docs/baseof.html b/layouts/docs/baseof.html index 846073bcf1..31082fb8f7 100644 --- a/layouts/docs/baseof.html +++ b/layouts/docs/baseof.html @@ -24,6 +24,11 @@ {{ if not .Site.Params.ui.breadcrumb_disable }}{{ partial "breadcrumb.html" . }}{{ end }} {{ block "deprecated" . }} {{ partial "deprecation-warning.html" . }} + {{ end }} + {{ if .HasShortcode "kat-button" }} + {{ block "katacoda-removal" . }} + {{ partial "katacoda-removal.html" . }} + {{ end }} {{ end }} {{ block "main" . }}{{ end }} {{- if .HasShortcode "thirdparty-content" -}} diff --git a/layouts/partials/katacoda-removal.html b/layouts/partials/katacoda-removal.html new file mode 100644 index 0000000000..87ff83b417 --- /dev/null +++ b/layouts/partials/katacoda-removal.html @@ -0,0 +1,7 @@ +
+
+

+ {{ T "katacoda_removal_warning" | markdownify }} +

+
+