@@ -123,7 +123,7 @@ Go to `<rdocs-base>`, and open the `Makefile` for editing:
123
123
* Set `K8S_ROOT` to `<k8s-base>`.
124
124
* Set `K8S_WEBROOT` to `<web-base>`.
125
125
* 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.
127
127
-->
128
128
* 设置 ` K8S_ROOT ` 为 ` <k8s-base> ` .
129
129
* 设置 ` K8S_WEBROOT ` 为 ` <web-base> ` .
@@ -155,7 +155,13 @@ The versioned directory name follows the pattern of `v<major>_<minor>`.
155
155
这些步骤确保配置文件的版本和 Kubernetes OpenAPI 规范的版本与发行版本匹配。
156
156
版本化目录的名称形式为 ` v<major>_<minor> ` 。
157
157
158
+ <!--
159
+ In the '<rdocs-base>' directory, run the following build target:
160
+ -->
161
+ 在 '<rdocs-base >' 目录中,运行以下命令来构建:
162
+
158
163
``` shell
164
+ cd < rdocs-base>
159
165
make updateapispec
160
166
```
161
167
@@ -257,16 +263,17 @@ version number.
257
263
## Locally test the API reference
258
264
259
265
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">}} /).
261
267
-->
262
268
## 在本地测试 API 参考
263
269
264
270
发布 API 参考的本地版本。
265
- 检查[本地预览](http://localhost:1313/docs/reference/generated/kubernetes-api/v1.15 /)。
271
+ 检查[本地预览](http://localhost:1313/docs/reference/generated/kubernetes-api/{{< param "version">}} /)。
266
272
267
273
```shell
268
274
cd <web-base>
269
- make docker-serve
275
+ git submodule update --init --recursive --depth 1 # if not already done
276
+ make container-serve
270
277
```
271
278
272
279
<!--
0 commit comments