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: README-zh.md
+37-40Lines changed: 37 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,8 @@
9
9
<!--
10
10
This repository contains the assets required to build the [Kubernetes website and documentation](https://kubernetes.io/). We're glad that you want to contribute!
- [Contributing to the docs](#contributing-to-the-docs)
@@ -37,16 +37,15 @@ To use this repository, you need the following installed locally:
37
37
- [Go](https://golang.org/)
38
38
- [Hugo (Extended version)](https://gohugo.io/)
39
39
- A container runtime, like [Docker](https://www.docker.com/).
40
-
41
40
-->
42
41
## 前提条件
43
42
44
43
使用这个仓库,需要在本地安装以下软件:
45
44
46
45
-[npm](https://www.npmjs.com/)
47
46
-[Go](https://golang.org/)
48
-
-[Hugo (Extended version)](https://gohugo.io/)
49
-
- 容器运行时,比如 [Docker](https://www.docker.com/).
47
+
-[Hugo(Extended 版本)](https://gohugo.io/)
48
+
- 容器运行时,比如 [Docker](https://www.docker.com/)。
50
49
51
50
<!--
52
51
Before you start, install the dependencies. Clone the repository and navigate to the directory:
@@ -62,7 +61,8 @@ cd website
62
61
The Kubernetes website uses the [Docsy Hugo theme](https://github.com/google/docsy#readme). Even if you plan to run the website in a container, we strongly recommend pulling in the submodule and other development dependencies by running the following:
63
62
-->
64
63
65
-
Kubernetes 网站使用的是 [Docsy Hugo 主题](https://github.com/google/docsy#readme)。 即使你打算在容器中运行网站,我们也强烈建议你通过运行以下命令来引入子模块和其他开发依赖项:
64
+
Kubernetes 网站使用的是 [Docsy Hugo 主题](https://github.com/google/docsy#readme)。
To build the site in a container, run the following to build the container image and run it:
76
-
75
+
To build the site in a container, run the following:
77
76
-->
78
77
## 在容器中运行网站
79
78
80
-
要在容器中构建网站,请通过以下命令来构建容器镜像并运行:
79
+
要在容器中构建网站,请运行以下命令:
81
80
82
81
```bash
83
82
# 你可以将 $CONTAINER_ENGINE 设置为任何 Docker 类容器工具的名称
@@ -87,7 +86,7 @@ make container-serve
87
86
<!--
88
87
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)).
@@ -137,7 +136,7 @@ To update the reference pages for a new Kubernetes release follow these steps:
137
136
-->
138
137
位于 `content/en/docs/reference/kubernetes-api` 的 API 参考页面是根据 Swagger 规范构建的,使用 <https://github.com/kubernetes-sigs/reference-docs/tree/master/gen-resourcesdocs>。
139
138
140
-
要更新新 Kubernetes 版本的参考页面,请执行以下步骤:
139
+
要更新 Kubernetes 新版本的参考页面,请执行以下步骤:
141
140
142
141
<!--
143
142
1. Pull in the `api-ref-generator` submodule:
@@ -171,19 +170,19 @@ To update the reference pages for a new Kubernetes release follow these steps:
171
170
make api-reference
172
171
```
173
172
174
-
<!--
173
+
<!--
175
174
You can test the results locally by making and serving the site from a container image:
176
-
-->
177
-
您可以通过从容器映像创建和提供站点来在本地测试结果:
175
+
-->
176
+
你可以通过从容器映像创建和提供站点来在本地测试结果:
178
177
179
178
```bash
180
179
make container-image
181
180
make container-serve
182
181
```
183
182
184
-
<!--
183
+
<!--
185
184
In a web browser, go to <http://localhost:1313/docs/reference/kubernetes-api/> to view the API reference.
186
-
-->
185
+
-->
187
186
在 Web 浏览器中,打开 <http://localhost:1313/docs/reference/kubernetes-api/> 查看 API 参考。
188
187
189
188
<!--
@@ -200,17 +199,17 @@ Hugo is shipped in two set of binaries for technical reasons. The current websit
200
199
-->
201
200
## 故障排除
202
201
203
-
### error: failed to transform resource: TOCSS: failed to transform "scss/main.scss" (text/x-scss): this feature is not available in your current Hugo version
202
+
### error: failed to transform resource: TOCSS: failed to transform "scss/main.scss" (text/x-scss): this feature is not available in your current Hugo version
@@ -331,16 +330,15 @@ You can click the **Fork** button in the upper-right area of the screen to creat
331
330
332
331
Once your pull request is created, a Kubernetes reviewer will take responsibility for providing clear, actionable feedback. As the owner of the pull request, **it is your responsibility to modify your pull request to address the feedback that has been provided to you by the Kubernetes reviewer.**
Also, note that you may end up having more than one Kubernetes reviewer provide you feedback or you may end up getting feedback from a Kubernetes reviewer that is different than the one initially assigned to provide you feedback.
@@ -350,9 +348,8 @@ Furthermore, in some cases, one of your reviewers might ask for a technical revi
@@ -377,7 +374,7 @@ For more information about contributing to the Kubernetes documentation, see:
377
374
<!--
378
375
If you need help at any point when contributing, the [New Contributor Ambassadors](https://kubernetes.io/docs/contribute/advanced/#serve-as-a-new-contributor-ambassador) are a good point of contact. These are SIG Docs approvers whose responsibilities include mentoring new contributors and helping them through their first few pull requests. The best place to contact the New Contributors Ambassadors would be on the [Kubernetes Slack](https://slack.k8s.io/). Current New Contributors Ambassadors for SIG Docs:
Participation in the Kubernetes community is governed by the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md).
428
+
Participation in the Kubernetes community is governed by the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/main/code-of-conduct.md).
0 commit comments