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/docs/contribute/style/style-guide.md
+29-21Lines changed: 29 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -394,7 +394,7 @@ This section talks about how we reference API resources in the documentation.
394
394
395
395
Kubernetes uses the word "resource" to refer to API resources, such as `pod`, `deployment`, and so on. We also use "resource" to talk about CPU and memory requests and limits. Always refer to API resources as "API resources" to avoid confusion with CPU and memory resources.
396
396
-->
397
-
## 引用 Kubernetes API 资源
397
+
## 引用 Kubernetes API 资源 {#referring-to-kubernetes-api-resources}
@@ -926,7 +926,7 @@ Shortcodes inside include statements will break the build. You must insert them
926
926
{{</* /note */>}}
927
927
```
928
928
-->
929
-
### Include 语句
929
+
### Include 语句 {#include-statements}
930
930
931
931
如果短代码出现在 include 语境中,会导致网站无法构建。
932
932
你必须将他们插入到上级文档中,分别将开始标记和结束标记插入到 include 语句之前和之后。
@@ -955,33 +955,41 @@ Use a single newline to separate block-level content like headings, lists, image
955
955
两行的留白有助于在代码编辑器中查看整个内容的结构组织。
956
956
957
957
<!--
958
-
### Headings
958
+
### Headings and titles {#headings}
959
+
959
960
People accessing this documentation may use a screen reader or other assistive technology (AT). [Screen readers](https://en.wikipedia.org/wiki/Screen_reader) are linear output devices, they output items on a page one at a time. If there is a lot of content on a page, you can use headings to give the page an internal structure. A good page structure helps all readers to easily navigate the page or filter topics of interest.
Update the title in the front matter of the page or blog post. | Use first level heading, as Hugo automatically converts the title in the front matter of the page into a first-level heading.
965
975
Use ordered headings to provide a meaningful high-level outline of your content. | Use headings level 4 through 6, unless it is absolutely necessary. If your content is that detailed, it may need to be broken into separate articles.
966
976
Use pound or hash signs (`#`) for non-blog post content. | Use underlines (`---` or `===`) to designate first-level headings.
967
-
Use sentence case for headings. For example, **Extend kubectl with plugins** | Use title case for headings. For example, **Extend Kubectl With Plugins**
977
+
Use sentence case for headings in the page body. For example,
978
+
**Extend kubectl with plugins** | Use title case for headings in the page body. For example, **Extend Kubectl With Plugins**
979
+
Use title case for the page title in the front matter. For example,
980
+
`title: Kubernetes API Server Bypass Risks` | Use sentence case for page titles
0 commit comments