diff --git a/layouts/sbx-cli.html b/layouts/sbx-cli.html index 0b10f5e0fa6..d5df812bc59 100644 --- a/layouts/sbx-cli.html +++ b/layouts/sbx-cli.html @@ -5,7 +5,12 @@
{{ partial "breadcrumbs.html" . }}
-

{{ .Title }}

+

+ {{ .Title }} + {{ if $data.experimental }} + {{ partialCached "components/badge.html" (dict "color" "violet" "content" "experimental") "sbx-exp" }} + {{ end }} +

{{- /* Summary table */ -}} @@ -28,6 +33,22 @@

{{ .Title }}

+ {{- /* Experimental callout (command-level) */ -}} + {{ if $data.experimental }} +
+

+ {{ partialCached "icon" "beaker" "beaker" }} + {{ i18n "experimental" }} +

+

This command is experimental.

+

+ Experimental features are intended for testing and feedback as their + functionality or design may change between releases without warning or + can be removed entirely in a future release. +

+
+ {{ end }} + {{- /* Description */ -}} {{ with $data.description }} {{ $heading := dict "level" 2 "text" "Description" }} @@ -54,7 +75,14 @@

{{ .Title }}

{{ $child := index hugo.Data.sbx_cli .Params.datafile }} {{ .Title }} - {{ $child.synopsis }} + + + {{ if $child.experimental }} + {{ partialCached "components/badge.html" (dict "color" "violet" "content" "experimental") "sbx-exp" }} + {{ end }} + {{ $child.synopsis }} + + {{ end }} {{ end }} @@ -91,9 +119,14 @@

{{ .Title }}

{{ end }} - {{ with .usage }} - {{ strings.TrimSpace . }} - {{ end }} + + {{ with .experimental }} + {{ partialCached "components/badge.html" (dict "color" "violet" "content" "experimental") "sbx-exp" }} + {{ end }} + {{ with .usage }} + {{ strings.TrimSpace . }} + {{ end }} + {{ end }} @@ -132,9 +165,14 @@

{{ .Title }}

{{ end }} - {{ with .usage }} - {{ strings.TrimSpace . }} - {{ end }} + + {{ with .experimental }} + {{ partialCached "components/badge.html" (dict "color" "violet" "content" "experimental") "sbx-exp" }} + {{ end }} + {{ with .usage }} + {{ strings.TrimSpace . }} + {{ end }} + {{ end }}