Skip to content

Commit 9f02943

Browse files
authored
[Fix][Doc] fix doc tip style and add document format specification (#8378)
1 parent bd89d84 commit 9f02943

File tree

9 files changed

+70
-10
lines changed

9 files changed

+70
-10
lines changed

Diff for: docs/en/connector-v2/sink/Clickhouse.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Option descriptions:
8484

8585
### save_mode_create_template
8686

87-
Automatically create Doris tables using templates.
87+
Automatically create Clickhouse tables using templates.
8888
The table creation statements will be generated based on the upstream data types and schema. The default template can be modified as needed.
8989

9090
Default template:
@@ -118,7 +118,7 @@ The following placeholders can be used:
118118

119119
- `database`: Retrieves the database from the upstream schema.
120120
- `table_name`: Retrieves the table name from the upstream schema.
121-
- `rowtype_fields`: Retrieves all fields from the upstream schema and automatically maps them to Doris field descriptions.
121+
- `rowtype_fields`: Retrieves all fields from the upstream schema and automatically maps them to Clickhouse field descriptions.
122122
- `rowtype_primary_key`: Retrieves the primary key from the upstream schema (this may be a list).
123123
- `rowtype_unique_key`: Retrieves the unique key from the upstream schema (this may be a list).
124124

Diff for: docs/en/contribution/docs-format-specification.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Docs Format Specification
2+
## Admonitions
3+
4+
We have special admonitions syntax by wrapping text with a set of 3 colons, followed by a label denoting its type. When you want to emphasize the content, it is recommended to use admonitions.
5+
6+
In use, the following specifications need to be followed:
7+
8+
- Tip: mainly used for operational tips and tricks.
9+
10+
- Note: used for more details and explanations.
11+
12+
- Caution: used for warnings and precautions.
13+
14+
You may also specify an optional title. Here are the examples of admonitions syntax:
15+
16+
```Markdown
17+
:::tip Tip
18+
Some content with tips
19+
:::
20+
21+
:::info Note
22+
Some content with explanations
23+
:::
24+
25+
:::caution Warning
26+
Some content with precuations and warnings
27+
:::
28+
```

Diff for: docs/sidebars.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,8 @@ const sidebars = {
232232
'contribution/new-license',
233233
'contribution/coding-guide',
234234
'contribution/contribute-transform-v2-guide',
235-
'contribution/how-to-create-your-connector'
235+
'contribution/how-to-create-your-connector',
236+
'contribution/docs-format-specification'
236237
],
237238
},
238239
"faq"

Diff for: docs/zh/connector-v2/sink/Clickhouse.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767

6868
在开启同步任务之前,针对现有的表结构选择不同的处理方案。
6969
选项介绍:
70-
`RECREATE_SCHEMA` :表不存在时创建,表保存时删除并重建。
70+
`RECREATE_SCHEMA` :表不存在时创建,表保存时删除并重建。
7171
`CREATE_SCHEMA_WHEN_NOT_EXIST` :表不存在时会创建,表存在时跳过。
7272
`ERROR_WHEN_SCHEMA_NOT_EXIST` :表不存在时会报错。
7373
`IGNORE` :忽略对表的处理。
@@ -83,7 +83,7 @@
8383

8484
### save_mode_create_template
8585

86-
使用模板自动创建Doris表
86+
使用模板自动创建 Clickhouse 表
8787
会根据上游数据类型和schema类型创建相应的建表语句,
8888
默认模板可以根据情况进行修改。
8989

@@ -119,7 +119,7 @@ CREATE TABLE IF NOT EXISTS `${database}`.`${table}` (
119119

120120
- database:用于获取上游schema中的数据库。
121121
- table_name:用于获取上游schema中的表名。
122-
- rowtype_fields:用于获取上游schema中的所有字段,自动映射到Doris的字段描述
122+
- rowtype_fields:用于获取上游schema中的所有字段,自动映射到 Clickhouse 的字段描述
123123
- rowtype_primary_key:用于获取上游模式中的主键(可能是列表)。
124124
- rowtype_unique_key:用于获取上游模式中的唯一键(可能是列表)。
125125

Diff for: docs/zh/connector-v2/sink/ClickhouseFile.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
- [ ] [精准一次](../../concept/connector-v2-features.md)
1212

13-
:::小提示
13+
:::tip 提示
1414

1515
你也可以采用JDBC的方式将数据写入Clickhouse。
1616

Diff for: docs/zh/connector-v2/sink/Hive.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
将数据写入 Hive。
88

9-
:::提示
9+
:::tip 提示
1010

1111
为了使用此连接器,您必须确保您的 Spark/Flink 集群已经集成了 Hive。测试过的 Hive 版本是 2.3.9 和 3.1.3。
1212

Diff for: docs/zh/connector-v2/sink/LocalFile.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
将数据输出到本地文件。
88

9-
:::提示
9+
:::tip 提示
1010

1111
如果你使用的是 spark/flink,为了使用此连接器,你必须确保你的 spark/flink 集群已集成 hadoop。已测试的 hadoop 版本是 2.x。
1212

Diff for: docs/zh/connector-v2/source/Hive.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
从 Hive 读取数据。
88

9-
:::提示
9+
:::tip 提示
1010

1111
为了使用此连接器,您必须确保您的 Spark/Flink 集群已经集成了 Hive。测试过的 Hive 版本是 2.3.9 和 3.1.3。
1212

Diff for: docs/zh/contribution/docs-format-specification.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# 文档格式规范
2+
## 注释说明
3+
4+
注释说明在技术文档中起强调作用。在使用中,需遵循以下规范:
5+
6+
- 根据提示内容,可以将注释分为“提示”、“备注”、“注意”三类。注释框标题与使用场景请遵循以下规范:
7+
8+
- 提示:主要用于操作技巧提示
9+
10+
- 备注:用于补充内容补充解释
11+
12+
- 注意:用于操作、注意事项警告
13+
14+
- 提示框内容可以使用有序、无序、代码块
15+
16+
17+
下面是 Markdown 文档中注释说明示例:
18+
19+
```Markdown
20+
:::tip 提示
21+
这是一条提示
22+
:::
23+
24+
:::info 备注
25+
这是一条备注
26+
:::
27+
28+
:::caution 注意
29+
这是一条注意事项
30+
:::
31+
```

0 commit comments

Comments
 (0)