Skip to content

Commit 8f3d098

Browse files
authored
Merge pull request #49764 from my-git9/np-26025
[zh-cn]sync style-guide.md
2 parents 0923cdd + 27f8892 commit 8f3d098

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

content/zh-cn/docs/contribute/style/style-guide.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ title: 文档样式指南
33
linktitle: 样式指南
44
content_type: concept
55
weight: 40
6+
math: true
67
---
78
<!--
89
title: Documentation Style Guide
910
linktitle: Style guide
1011
content_type: concept
1112
weight: 40
13+
math: true
1214
-->
1315

1416
<!-- overview -->
@@ -658,6 +660,34 @@ apiVersion: v1 # 早期版本使用...
658660
kind: Pod
659661
...
660662
```
663+
664+
<!--
665+
## Formulae and equations
666+
667+
You can use the Docsy support for [diagrams and formulae](https://www.docsy.dev/docs/adding-content/diagrams-and-formulae/#latex-support-with-katex).
668+
669+
For example: `\\(\frac{7}{9} \sqrt{K^8 s}\\)`, which renders as \\(\frac{7}{9} \sqrt{K^8 s}\\).
670+
-->
671+
## 公式与方程
672+
673+
你可以使用 Docsy
674+
[图表和公式](https://www.docsy.dev/docs/adding-content/diagrams-and-formulae/#latex-support-with-katex)的支持。
675+
676+
例如:`\$\frac{7}{9} \sqrt{K^8 s}\$`,渲染结果为 \\(\frac{7}{9} \sqrt{K^8 s}\\)。
677+
678+
<!--
679+
Prefer inline formulae where reasonable, but you can use a `math` block if that's likely to help readers.
680+
681+
Read the Docsy guide to find out what you need to change in your page to activate support;
682+
if you have problems, add `math: true` to the page [front matter](https://gohugo.io/content-management/front-matter/)
683+
(you can do this even if you think the automatic activation should be enough).
684+
-->
685+
尽可能使用行内公式,但在有助于读者理解的情况下,也可以使用 `math` 块。
686+
687+
请阅读 Docsy 指南,了解需要在页面中进行哪些更改以激活支持;如果遇到问题,
688+
请在页面的[前置元数据](https://gohugo.io/content-management/front-matter/)中添加
689+
`math: true`(即使你认为自动激活已足够,也可以这样做)。
690+
661691
<!--
662692
## Kubernetes.io word list
663693

0 commit comments

Comments
 (0)