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
+89-41Lines changed: 89 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -239,25 +239,28 @@ The copy is called a "fork". | The copy is called a "fork."
239
239
<!--
240
240
## Inline code formatting
241
241
242
-
### Use code style for inline code, commands, and API objects {#code-style-inline-code}
242
+
### Use code style for inline code, commands {#code-style-inline-code}
243
243
244
244
For inline code in an HTML document, use the `<code>` tag. In a Markdown
245
-
document, use the backtick (`` ` ``).
245
+
document, use the backtick (`` ` ``). However, API kinds such as StatefulSet
246
+
or ConfigMap are written verbatim (no backticks); this allows using possessive
247
+
apostrophes.
246
248
-->
247
249
## 行间代码格式 {#inline-code-formatting}
248
250
249
-
### 为行间代码、命令与 API 对象使用代码样式 {#code-style-inline-code}
251
+
### 为行间代码、命令使用代码样式 {#code-style-inline-code}
250
252
251
-
对于 HTML 文档中的行间代码,使用 `<code>` 标记。
252
-
在 Markdown 文档中,使用反引号(`` ` ``)。
253
+
对于 HTML 文档中的行间代码,使用 `<code>` 标记。在 Markdown 文档中,使用反引号(`` ` ``)。
254
+
然而,StatefulSet 或 ConfigMap 这些 API 类别是直接书写的(不用反引号);这样允许使用表示所有格的撇号。
253
255
254
256
<!--
255
-
{{< table caption = "Do and Don't - Use code style for inline code, commands and API objects" >}}
257
+
{{< table caption = "Do and Don't - Use code style for inline code, commands, and API objects" >}}
256
258
Do | Don't
257
259
:--| :-----
258
-
The `kubectl run` command creates a `Pod`. | The "kubectl run" command creates a pod.
259
-
The kubelet on each node acquires a `Lease`… | The kubelet on each node acquires a lease…
260
-
A `PersistentVolume` represents durable storage… | A Persistent Volume represents durable storage…
260
+
The `kubectl run` command creates a Pod. | The "kubectl run" command creates a Pod.
261
+
The kubelet on each node acquires a Lease… | The kubelet on each node acquires a `Lease`…
262
+
A PersistentVolume represents durable storage… | A `PersistentVolume` represents durable storage…
263
+
The CustomResourceDefinition's `.spec.group` field… | The `CustomResourceDefinition.spec.group` field…
261
264
For declarative management, use `kubectl apply`. | For declarative management, use "kubectl apply".
262
265
Enclose code samples with triple backticks. (\`\`\`)| Enclose code samples with any other syntax.
263
266
Use single backticks to enclose inline code. For example, `var example = true`. | Use two asterisks (`**`) or an underscore (`_`) to enclose inline code. For example, **var example = true**.
@@ -269,9 +272,10 @@ Remove trailing spaces in the code. | Add trailing spaces in the code, where the
0 commit comments