Skip to content

Commit 4f56a0c

Browse files
authored
Merge pull request #259 from leverimmy/master
feat(i18n/zh-cn): add Chinese Simplified translation
2 parents 31aa880 + 8ccc99b commit 4f56a0c

File tree

3 files changed

+58
-0
lines changed

3 files changed

+58
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# 速查表
2+
3+
点击此预览以下载 PDF 文件。
4+
5+
<a href="https://terrastruct-site-assets.s3.us-west-1.amazonaws.com/documents/d2_cheat_sheet.pdf">
6+
<img src={require('@site/static/img/screenshots/cheatsheet.png').default} alt="d2 速查表" style={{width:'600px'}}/>
7+
</a>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# 注释
2+
3+
D2 语言支持行注释和块注释。
4+
5+
## 行注释
6+
7+
行注释以井号(`#`)开头。
8+
9+
它们可以单独成行:
10+
11+
```d2
12+
# 注释以井号开头,直至遇到换行符或 EOF。
13+
x -> y
14+
```
15+
16+
也可以放在一行的末尾:
17+
18+
```d2
19+
x -> y # 我在行尾
20+
```
21+
22+
## 块注释
23+
24+
块注释以三个双引号(`"""`)开头和结尾:
25+
26+
```d2
27+
x -> y
28+
29+
"""
30+
这是一个
31+
块注释
32+
"""
33+
34+
y -> z
35+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
pagination_next: tour/shapes
3+
---
4+
import CodeBlock from '@theme/CodeBlock';
5+
import HelloWorld from '@site/static/d2/hello-world.d2';
6+
7+
# Hello World
8+
9+
<CodeBlock className="language-d2">
10+
{HelloWorld}
11+
</CodeBlock>
12+
13+
<div
14+
className="embedSVG" dangerouslySetInnerHTML={{__html: require('@site/static/img/generated/hello-world.svg2')}}></div>
15+
16+
这里声明了两个形状 `x``y` 之间的连接,并带有标签 `hello world`

0 commit comments

Comments
 (0)