Skip to content

Commit 71a9f3e

Browse files
committed
[zh] update README.md
1 parent 6780d1f commit 71a9f3e

File tree

1 file changed

+48
-1
lines changed

1 file changed

+48
-1
lines changed

content/zh-cn/README.md

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Kubernetes 文档
2-
32
<!--
43
# The Kubernetes documentation
54
-->
@@ -117,17 +116,37 @@ To build the site in a container, run the following:
117116
<!--
118117
```bash
119118
# You can set $CONTAINER_ENGINE to the name of any Docker-like container tool
119+
120+
# Render the full website
120121
make container-serve
122+
123+
# Render only a specific language segment (e.g., English)
124+
make container-serve segments=en
125+
126+
# Render multiple languages (e.g., English and Korean)
127+
make container-serve segments=en,ko
121128
```
122129
-->
123130
```bash
124131
# 你可以将 $CONTAINER_ENGINE 设置为任何 Docker 类容器工具的名称
132+
133+
# 渲染整个网站
125134
make container-serve
135+
136+
# 仅渲染特定语言(例如英语)
137+
make container-serve segments=en
138+
139+
# 渲染多种语言(例如英语和韩语)
140+
make container-serve segments=en,ko
126141
```
127142

128143
<!--
144+
**💡 Tip:** Using _Hugo segments_ speeds up local preview builds, by rendering only selected language(s).
145+
129146
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/)).
130147
-->
148+
**💡 提示:**使用 **Hugo 分段机制**可以加快本地预览构建速度,因为它只渲染选定的语言。
149+
131150
如果你看到错误,这可能意味着 Hugo 容器没有足够的可用计算资源。
132151
要解决这个问题,请增加机器([MacOS](https://docs.docker.com/desktop/settings/mac/)
133152
[Windows](https://docs.docker.com/desktop/settings/windows/))上
@@ -153,10 +172,38 @@ To install dependencies, deploy and test the site locally, run:
153172
-->
154173
- 对于 macOS 和 Linux
155174

175+
<!--
156176
```bash
157177
npm ci
178+
179+
# Render the full site (default)
158180
make serve
181+
182+
# Render only a specific language segment
183+
make serve segments=en
184+
185+
# Render multiple language segments
186+
make serve segments=en,ko
159187
```
188+
-->
189+
190+
```bash
191+
npm ci
192+
193+
# 渲染整个网站(默认)
194+
make serve
195+
196+
# 仅渲染特定语言
197+
make serve segments=en
198+
199+
# 渲染多种语言
200+
make serve segments=en,ko
201+
```
202+
203+
<!--
204+
**💡 Tip:** Hugo segments are defined in `hugo.toml` and allow faster rendering by limiting the scope to specific language(s).
205+
-->
206+
**💡 提示:** Hugo 分段在 `hugo.toml` 中定义,通过将渲染范围限定为特定语言,可以加快构建速度。
160207

161208
<!--
162209
- For Windows (PowerShell)

0 commit comments

Comments
 (0)