File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
content/en/docs/contribute/style/hugo-shortcodes Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,21 @@ Renders to:
49
49
50
50
{{< feature-state for_k8s_version="v1.10" state="beta" >}}
51
51
52
+ ### Feature state retrieval from description file
53
+
54
+ To dynamically determine the state of the feature, make use of the ` feature_gate_name `
55
+ shortcode parameter. The feature state details will be extracted from the corresponding feature gate
56
+ description file located in ` content/en/docs/reference/command-line-tools-reference/feature-gates/ ` .
57
+ For example:
58
+
59
+ ```
60
+ {{</* feature-state feature_gate_name="NodeSwap" */>}}
61
+ ```
62
+
63
+ Renders to:
64
+
65
+ {{< feature-state feature_gate_name="NodeSwap" >}}
66
+
52
67
## Feature gate description
53
68
54
69
In a Markdown page (` .md ` file) on this site, you can add a shortcode to
You can’t perform that action at this time.
0 commit comments