Skip to content

Commit b6ee614

Browse files
authored
Merge pull request #25482 from jiaj12/patch-56
Update kubernetes-api.md
2 parents 42813ad + 1dcdd6a commit b6ee614

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

content/zh/docs/contribute/generate-ref-docs/kubernetes-api.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Go to `<rdocs-base>`, and open the `Makefile` for editing:
123123
* Set `K8S_ROOT` to `<k8s-base>`.
124124
* Set `K8S_WEBROOT` to `<web-base>`.
125125
* Set `K8S_RELEASE` to the minor version of the docs you want to build.
126-
For example, if you want to build docs for Kubernetes 1.17, set `K8S_RELEASE` to 1.17.
126+
For example, if you want to build docs for Kubernetes 1.17, set `K8S_RELEASE` to 1.17.
127127
-->
128128
* 设置 `K8S_ROOT``<k8s-base>`.
129129
* 设置 `K8S_WEBROOT``<web-base>`.
@@ -155,7 +155,13 @@ The versioned directory name follows the pattern of `v<major>_<minor>`.
155155
这些步骤确保配置文件的版本和 Kubernetes OpenAPI 规范的版本与发行版本匹配。
156156
版本化目录的名称形式为 `v<major>_<minor>`
157157

158+
<!--
159+
In the '<rdocs-base>' directory, run the following build target:
160+
-->
161+
在 '<rdocs-base>' 目录中,运行以下命令来构建:
162+
158163
```shell
164+
cd <rdocs-base>
159165
make updateapispec
160166
```
161167

@@ -257,16 +263,17 @@ version number.
257263
## Locally test the API reference
258264
259265
Publish a local version of the API reference.
260-
Verify the [local preview](http://localhost:1313/docs/reference/generated/kubernetes-api/v1.15/).
266+
Verify the [local preview](http://localhost:1313/docs/reference/generated/kubernetes-api/{{< param "version">}}/).
261267
-->
262268
## 在本地测试 API 参考
263269
264270
发布 API 参考的本地版本。
265-
检查[本地预览](http://localhost:1313/docs/reference/generated/kubernetes-api/v1.15/)。
271+
检查[本地预览](http://localhost:1313/docs/reference/generated/kubernetes-api/{{< param "version">}}/)。
266272
267273
```shell
268274
cd <web-base>
269-
make docker-serve
275+
git submodule update --init --recursive --depth 1 # if not already done
276+
make container-serve
270277
```
271278

272279
<!--

0 commit comments

Comments
 (0)