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
- Use the `/approve` comment to approve a PR for merging. Merge the PR when ready.
72
-
- PRs should have a `/lgtm` comment from another member before merging.
73
-
- Consider accepting technically accurate content that doesn't meet the
74
-
[style guidelines](/docs/contribute/style/style-guide/). As you approve the change,
75
-
open a new issue to address the style concern. You can usually write these style fix
76
-
issues as [good first issues](https://kubernetes.dev/docs/guide/help-wanted/#good-first-issue).
77
-
- Using style fixups as good first issues is a good way to ensure a supply of easier tasks
78
-
to help onboard new contributors.
73
+
- PRs should have a `/lgtm` comment from another member before merging.
74
+
- Consider accepting technically accurate content that doesn't meet the
75
+
[style guidelines](/docs/contribute/style/style-guide/). As you approve the change,
76
+
open a new issue to address the style concern. You can usually write these style fix
77
+
issues as [good first issues](https://kubernetes.dev/docs/guide/help-wanted/#good-first-issue).
78
+
- Using style fixups as good first issues is a good way to ensure a supply of easier tasks
79
+
to help onboard new contributors.
79
80
-->
80
81
- 使用 `/approve` 评论来批准可以合并的 PR,在 PR 就绪时将其合并。
81
82
- PR 在被合并之前,应该有来自其他成员的 `/lgtm` 评论。
@@ -87,7 +88,8 @@ Each day in a week-long shift as PR Wrangler:
87
88
这有助于接纳新的贡献者。
88
89
89
90
<!--
90
-
- Also check for pull requests against the [reference docs generator](https://github.com/kubernetes-sigs/reference-docs) code, and review those (or bring in help).
91
+
- Also check for pull requests against the [reference docs generator](https://github.com/kubernetes-sigs/reference-docs)
92
+
code, and review those (or bring in help).
91
93
- Support the [issue wrangler](/docs/contribute/participate/issue-wrangler/) to
92
94
triage and tag incoming issues daily.
93
95
See [Triage and categorize issues](/docs/contribute/review/for-approvers/#triage-and-categorize-issues)
@@ -101,11 +103,12 @@ Each day in a week-long shift as PR Wrangler:
101
103
102
104
{{< note >}}
103
105
<!--
104
-
PR wrangler duties do not apply to localization PRs (non-English PRs).
105
-
Localization teams have their own processes and teams for reviewing their language PRs.
106
-
However, it's often helpful to ensure language PRs are labeled correctly,
107
-
review small non-language dependent PRs (like a link update),
108
-
or tag reviewers or contributors in long-running PRs (ones opened more than 6 months ago and have not been updated in a month or more).
106
+
PR wrangler duties do not apply to localization PRs (non-English PRs).
107
+
Localization teams have their own processes and teams for reviewing their language PRs.
108
+
However, it's often helpful to ensure language PRs are labeled correctly,
109
+
review small non-language dependent PRs (like a link update),
110
+
or tag reviewers or contributors in long-running PRs
111
+
(ones opened more than 6 months ago and have not been updated in a month or more).
109
112
-->
110
113
PR 管理者的职责不适用于本地化 PR(非英语 PR)。
111
114
本地化团队有自己的流程和团队来审查其语言 PR。
@@ -201,10 +204,11 @@ These queries exclude localization PRs. All queries are against the main branch
201
204
Reviews and approvals are one tool to keep our PR queue short and current. Another tool is closure.
202
205
203
206
Close PRs where:
207
+
204
208
- The author hasn't signed the CLA for two weeks.
205
209
206
-
Authors can reopen the PR after signing the CLA. This is a low-risk way to make
207
-
sure nothing gets merged without a signed CLA.
210
+
Authors can reopen the PR after signing the CLA. This is a low-risk way to make
211
+
sure nothing gets merged without a signed CLA.
208
212
209
213
- The author has not responded to comments or feedback in 2 or more weeks.
210
214
@@ -237,7 +241,7 @@ and closes them. PR wranglers should close issues after 14-30 days of inactivity
Copy file name to clipboardExpand all lines: content/zh-cn/docs/doc-contributor-tools/linkchecker/README.md
+28-13Lines changed: 28 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,9 @@
4
4
# 内置链接检查工具
5
5
6
6
<!--
7
-
You can use [htmltest](https://github.com/wjdp/htmltest) to check for broken links in [`/content/en/`](https://git.k8s.io/website/content/en/). This is useful when refactoring sections of content, moving pages around, or renaming files or page headers.
7
+
You can use [htmltest](https://github.com/wjdp/htmltest) to check for broken links in
8
+
[`/content/en/`](https://git.k8s.io/website/content/en/). This is useful when refactoring
9
+
sections of content, moving pages around, or renaming files or page headers.
@@ -16,15 +18,18 @@ You can use [htmltest](https://github.com/wjdp/htmltest) to check for broken lin
16
18
## 工作原理 {#how-the-tool-works}
17
19
18
20
<!--
19
-
`htmltest` scans links in the generated HTML files of the kubernetes website repository. It runs using a `make` command which does the following:
21
+
`htmltest` scans links in the generated HTML files of the kubernetes website repository.
22
+
It runs using a `make` command which does the following:
20
23
-->
21
24
`htmltest` 会扫描 Kubernetes website 仓库构建生成的 HTML 文件。通过执行 `make` 命令进行了下列操作:
22
25
23
26
<!--
24
-
- Builds the site and generates output HTML in the `/public` directory of your local `kubernetes/website` repository
27
+
- Builds the site and generates output HTML in the `/public` directory of your
28
+
local `kubernetes/website` repository
25
29
- Pulls the `wdjp/htmltest` Docker image
26
30
- Mounts your local `kubernetes/website` repository to the Docker image
27
-
- Scans the files generated in the `/public` directory and provides command line output when it encounters broken internal links
31
+
- Scans the files generated in the `/public` directory and provides command line output
32
+
when it encounters broken internal links
28
33
-->
29
34
- 构建站点并输出 HTML 到本地 `kubernetes/website` 仓库下的 `/public` 目录中
30
35
- 拉取 Docker 镜像 `wdjp/htmltest`
@@ -37,7 +42,10 @@ You can use [htmltest](https://github.com/wjdp/htmltest) to check for broken lin
37
42
## 哪些链接不会检查 {#what-it-does-and-doesnot-check}
38
43
39
44
<!--
40
-
The link checker scans generated HTML files, not raw Markdown. The htmltest tool depends on a configuration file, [`.htmltest.yml`](https://git.k8s.io/website/.htmltest.yml), to determine which content to examine.
45
+
The link checker scans generated HTML files, not raw Markdown.
46
+
The htmltest tool depends on a configuration file,
- Empty hashes (`<a href="#">` or `[title](#)`) and empty hrefs (`<a href="">` or `[title]()`)
54
64
- Internal links to images and other media files
@@ -66,16 +76,18 @@ The link checker does not scan the following:
66
76
该链接检查器不会扫描以下内容:
67
77
68
78
<!--
69
-
- Links included in the top and side nav bars, footer links, or links in a page's `<head>` section, such as links to CSS stylesheets, scripts, and meta information
79
+
- Links included in the top and side nav bars, footer links, or links in a page's `<head>` section,
80
+
such as links to CSS stylesheets, scripts, and meta information
70
81
- Top level pages and their children, for example: `/training`, `/community`, `/case-studies/adidas`
71
82
- Blog posts
72
-
- API Reference documentation, for example: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/
0 commit comments