diff --git a/content/contribute/infrastructure.md b/content/contribute/infrastructure.md index 0fd1cd85..3240aa05 100644 --- a/content/contribute/infrastructure.md +++ b/content/contribute/infrastructure.md @@ -390,6 +390,7 @@ Expand the tab below to see an annotated `tree` output of the website repository │   │   │   ├── meta-common.html # tags used on all pages │   │   │   ├── ms-clarity.html # Microsoft Clarity tags │   │   │   ├── old-version-alert.html # Alert box for versions that aren't the latest +│   │   │   ├── preview-version-alert.html # Alert box for preview versions │   │   │   ├── redirect.html # HTML meta redirect │   │   │   ├── release-notes.html # Release note summary page generator │   │   │   ├── rollworks.html # Rollworks analytics tags diff --git a/content/v2.0-preview/get-started/install.md b/content/v2.0-preview/get-started/install.md index fa492082..72b2ae4b 100644 --- a/content/v2.0-preview/get-started/install.md +++ b/content/v2.0-preview/get-started/install.md @@ -3,13 +3,6 @@ title: Install Crossplane weight: 100 --- -{{< hint "warning" >}} -Crossplane v2 is a preview release. - -**Don't use this Crossplane v2 preview in production.** -{{< /hint >}} - - Crossplane installs into an existing Kubernetes cluster, creating the Crossplane pod. diff --git a/themes/geekboot/layouts/partials/old-version-alert.html b/themes/geekboot/layouts/partials/old-version-alert.html index 32be7eca..d62b8cad 100644 --- a/themes/geekboot/layouts/partials/old-version-alert.html +++ b/themes/geekboot/layouts/partials/old-version-alert.html @@ -9,7 +9,7 @@

- This document applies to Crossplane version v{{ .Page.Params.version }} and not to the latest release v{{.Site.Params.latest}}. + This document applies to Crossplane v{{ .Page.Params.version }} and not to the latest release v{{.Site.Params.latest}}.

diff --git a/themes/geekboot/layouts/partials/preview-version-alert.html b/themes/geekboot/layouts/partials/preview-version-alert.html new file mode 100644 index 00000000..db034d89 --- /dev/null +++ b/themes/geekboot/layouts/partials/preview-version-alert.html @@ -0,0 +1,18 @@ +
+
+
+ +
+
+ This document is for a preview version of Crossplane. +
+
+
+

+ This document applies to Crossplane v{{ .Page.Params.version }} and not to the latest release v{{.Site.Params.latest}}. +
+
+ Don't use Crossplane v{{ .Page.Params.version }} in production. +

+
+
diff --git a/themes/geekboot/layouts/partials/single-list.html b/themes/geekboot/layouts/partials/single-list.html index 2448bbbe..afbd2c0c 100644 --- a/themes/geekboot/layouts/partials/single-list.html +++ b/themes/geekboot/layouts/partials/single-list.html @@ -72,6 +72,8 @@ {{- if eq .Page.Params.version "master" -}} {{ partialCached "master-version-alert" . }} + {{- else if strings.HasSuffix $pageVer "-preview" -}} + {{ partialCached "preview-version-alert" . .Section }} {{- else if ne $pageVer .Site.Params.latest -}} {{ partialCached "old-version-alert" . .Section }} {{ end }}