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
Copy file name to clipboardExpand all lines: content/zh-cn/README.md
+48-1Lines changed: 48 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,4 @@
1
1
# Kubernetes 文档
2
-
3
2
<!--
4
3
# The Kubernetes documentation
5
4
-->
@@ -117,17 +116,37 @@ To build the site in a container, run the following:
117
116
<!--
118
117
```bash
119
118
# You can set $CONTAINER_ENGINE to the name of any Docker-like container tool
119
+
120
+
# Render the full website
120
121
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
121
128
```
122
129
-->
123
130
```bash
124
131
# 你可以将 $CONTAINER_ENGINE 设置为任何 Docker 类容器工具的名称
132
+
133
+
# 渲染整个网站
125
134
make container-serve
135
+
136
+
# 仅渲染特定语言(例如英语)
137
+
make container-serve segments=en
138
+
139
+
# 渲染多种语言(例如英语和韩语)
140
+
make container-serve segments=en,ko
126
141
```
127
142
128
143
<!--
144
+
**💡 Tip:** Using _Hugo segments_ speeds up local preview builds, by rendering only selected language(s).
145
+
129
146
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/)).
0 commit comments