Merge pull request #904 from negz/whats-new

Use a different warning for preview versions
This commit is contained in:
Nic Cope 2025-03-28 17:31:50 -07:00 committed by GitHub
commit 3b37063755
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 25 additions and 11 deletions

View File

@ -389,7 +389,8 @@ Expand the tab below to see an annotated `tree` output of the website repository
│   │   │   ├── mermaid.html # Styling and JavaScript for mermaid diagrams
│   │   │   ├── meta-common.html # <meta> tags used on all pages
│   │   │   ├── ms-clarity.html # Microsoft Clarity tags
│   │   │   ├── not-latest-version-alert.html # Alert box for versions that aren't the latest
│   │   │   ├── 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

View File

@ -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.

View File

@ -4,12 +4,12 @@
<svg class="bi flex-shrink-0" role="img" aria-label="Info:"><use xlink:href="#info"/></svg>
</div>
<div class="d-flex">
This document isn't for the latest version of Crossplane.
This document is for an older version of Crossplane.
</div>
</div>
<div class="mt-3">
<p>
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}}.
</p>
</div>
</div>

View File

@ -0,0 +1,18 @@
<div class="bd-callout bd-callout-danger d-flex flex-column w-100">
<div class="d-flex bd-title fs-6 fw-bold border-bottom border-info">
<div class="d-flex pe-3 align-self-center">
<svg class="bi flex-shrink-0" role="img" aria-label="Info:"><use xlink:href="#info"/></svg>
</div>
<div class="d-flex">
This document is for a preview version of Crossplane.
</div>
</div>
<div class="mt-3">
<p>
This document applies to Crossplane v{{ .Page.Params.version }} and not to the latest release v{{.Site.Params.latest}}.
<br />
<br />
<b>Don't use Crossplane v{{ .Page.Params.version }} in production.</b>
</p>
</div>
</div>

View File

@ -72,8 +72,10 @@
{{- 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 "not-latest-version-alert" . .Section }}
{{ partialCached "old-version-alert" . .Section }}
{{ end }}
{{ end }}