mirror of https://github.com/crossplane/docs.git
Merge pull request #904 from negz/whats-new
Use a different warning for preview versions
This commit is contained in:
commit
3b37063755
|
|
@ -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
|
│ │ │ ├── mermaid.html # Styling and JavaScript for mermaid diagrams
|
||||||
│ │ │ ├── meta-common.html # <meta> tags used on all pages
|
│ │ │ ├── meta-common.html # <meta> tags used on all pages
|
||||||
│ │ │ ├── ms-clarity.html # Microsoft Clarity tags
|
│ │ │ ├── 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
|
│ │ │ ├── redirect.html # HTML meta redirect
|
||||||
│ │ │ ├── release-notes.html # Release note summary page generator
|
│ │ │ ├── release-notes.html # Release note summary page generator
|
||||||
│ │ │ ├── rollworks.html # Rollworks analytics tags
|
│ │ │ ├── rollworks.html # Rollworks analytics tags
|
||||||
|
|
|
||||||
|
|
@ -3,13 +3,6 @@ title: Install Crossplane
|
||||||
weight: 100
|
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 installs into an existing Kubernetes cluster, creating the
|
||||||
Crossplane pod.
|
Crossplane pod.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,12 +4,12 @@
|
||||||
<svg class="bi flex-shrink-0" role="img" aria-label="Info:"><use xlink:href="#info"/></svg>
|
<svg class="bi flex-shrink-0" role="img" aria-label="Info:"><use xlink:href="#info"/></svg>
|
||||||
</div>
|
</div>
|
||||||
<div class="d-flex">
|
<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>
|
</div>
|
||||||
<div class="mt-3">
|
<div class="mt-3">
|
||||||
<p>
|
<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>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -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>
|
||||||
|
|
@ -72,8 +72,10 @@
|
||||||
|
|
||||||
{{- if eq .Page.Params.version "master" -}}
|
{{- if eq .Page.Params.version "master" -}}
|
||||||
{{ partialCached "master-version-alert" . }}
|
{{ partialCached "master-version-alert" . }}
|
||||||
|
{{- else if strings.HasSuffix $pageVer "-preview" -}}
|
||||||
|
{{ partialCached "preview-version-alert" . .Section }}
|
||||||
{{- else if ne $pageVer .Site.Params.latest -}}
|
{{- else if ne $pageVer .Site.Params.latest -}}
|
||||||
{{ partialCached "not-latest-version-alert" . .Section }}
|
{{ partialCached "old-version-alert" . .Section }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue