You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -98,17 +101,23 @@ To build the site in a container, run the following:
98
101
99
102
要在容器中构建网站,请运行以下命令:
100
103
104
+
<!--
105
+
```bash
106
+
# You can set $CONTAINER_ENGINE to the name of any Docker-like container tool
107
+
make container-serve
108
+
```
109
+
-->
101
110
```bash
102
111
# 你可以将 $CONTAINER_ENGINE 设置为任何 Docker 类容器工具的名称
103
112
make container-serve
104
113
```
105
114
106
115
<!--
107
-
If you see errors, it probably means that the hugo container did not have enough computing resources available. To solve it, increase the amount of allowed CPU and memory usage for Docker on your machine ([MacOSX](https://docs.docker.com/docker-for-mac/#resources) and [Windows](https://docs.docker.com/docker-for-windows/#resources)).
116
+
If you see errors, it probably means that the hugo container did not have enough computing resources available. To solve it, increase the amount of allowed CPU and memory usage for Docker on your machine ([MacOS](https://docs.docker.com/desktop/settings/mac/) and [Windows](https://docs.docker.com/desktop/settings/windows/)).
hugo.exe server --buildFuture --environment development
161
+
```
139
162
140
163
<!--
141
164
This will start the local Hugo server on port 1313. Open up your browser to <http://localhost:1313> to view the website. As you make changes to the source files, Hugo updates the website and forces a browser refresh.
@@ -154,7 +177,9 @@ The API reference pages located in `content/en/docs/reference/kubernetes-api` ar
154
177
155
178
To update the reference pages for a new Kubernetes release follow these steps:
@@ -193,7 +218,7 @@ To update the reference pages for a new Kubernetes release follow these steps:
193
218
<!--
194
219
You can test the results locally by making and serving the site from a container image:
195
220
-->
196
-
你可以通过从容器映像创建和提供站点来在本地测试结果:
221
+
你可以通过从容器镜像创建和提供站点来在本地测试结果:
197
222
198
223
```bash
199
224
make container-image
@@ -203,12 +228,13 @@ To update the reference pages for a new Kubernetes release follow these steps:
203
228
<!--
204
229
In a web browser, go to <http://localhost:1313/docs/reference/kubernetes-api/> to view the API reference.
205
230
-->
206
-
在 Web 浏览器中,打开 <http://localhost:1313/docs/reference/kubernetes-api/> 查看 API 参考。
231
+
在 Web 浏览器中,打开 <http://localhost:1313/docs/reference/kubernetes-api/> 查看 API 参考页面。
207
232
208
233
<!--
209
234
5. When all changes of the new contract are reflected into the configuration files `toc.yaml` and `fields.yaml`, create a Pull Request with the newly generated API reference pages.
210
235
-->
211
-
5. 当所有新的更改都反映到配置文件 `toc.yaml` 和 `fields.yaml` 中时,使用新生成的 API 参考页面创建一个 Pull Request。
236
+
5. 当所有新的更改都反映到配置文件 `toc.yaml` 和 `fields.yaml` 中时,使用新生成的 API
237
+
参考页面创建一个 Pull Request。
212
238
213
239
<!--
214
240
## Troubleshooting
@@ -252,10 +278,13 @@ Then run the following commands (adapted from <https://gist.github.com/tombigel/
0 commit comments