File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
content/zh-cn/docs/contribute/style/hugo-shortcodes Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,33 @@ Renders to:
87
87
88
88
{{< feature-state for_k8s_version="v1.10" state="beta" >}}
89
89
90
+ <!--
91
+ ### Feature state retrieval from description file
92
+
93
+ To dynamically determine the state of the feature, make use of the `feature_gate_name`
94
+ shortcode parameter. The feature state details will be extracted from the corresponding feature gate
95
+ description file located in `content/en/docs/reference/command-line-tools-reference/feature-gates/`.
96
+ For example:
97
+ -->
98
+ ### 从描述文件中检索特征状态
99
+
100
+ 要动态确定特性的状态,请使用 ` feature_gate_name ` 短代码参数,此参数将从
101
+ ` content/en/docs/reference/command-line-tools-reference/feature-gates/ `
102
+ 中相应的特性门控描述文件中提取特性的详细状态信息。
103
+
104
+ 例如:
105
+
106
+ ```
107
+ {{</* feature-state feature_gate_name="NodeSwap" */>}}
108
+ ```
109
+
110
+ <!--
111
+ Renders to:
112
+ -->
113
+ 会转换为:
114
+
115
+ {{< feature-state feature_gate_name="NodeSwap" >}}
116
+
90
117
<!--
91
118
## Feature gate description
92
119
You can’t perform that action at this time.
0 commit comments