Skip to content

Commit a79cc58

Browse files
authored
Merge pull request #45415 from my-git9/patch-11391
[zh-cn] sync hugo-shortcodes/index.md
2 parents b4dc25c + 94ad3ca commit a79cc58

File tree

1 file changed

+27
-0
lines changed
  • content/zh-cn/docs/contribute/style/hugo-shortcodes

1 file changed

+27
-0
lines changed

content/zh-cn/docs/contribute/style/hugo-shortcodes/index.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,33 @@ Renders to:
8787

8888
{{< feature-state for_k8s_version="v1.10" state="beta" >}}
8989

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+
90117
<!--
91118
## Feature gate description
92119

0 commit comments

Comments
 (0)