Skip to content

Commit bf92fab

Browse files
authored
docs: update plain to infographic (#190)
* chore: update version * docs: update ```plain to ```infographic
1 parent 9389e7a commit bf92fab

6 files changed

Lines changed: 61 additions & 61 deletions

File tree

.skills/infographic-creator/SKILL.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ AntV Infographic 语法是一种自定义的 DSL,用于描述信息图渲染
2323

2424
例如:
2525

26-
```plain
26+
```infographic
2727
infographic list-row-horizontal-icon-arrow
2828
data
2929
title Title
@@ -57,7 +57,7 @@ theme
5757
- `hierarchy-*`:使用单一 `root`,通过 `children` 嵌套(不要重复 `root`
5858
- `theme` 用于自定义主题(palette、font 等)
5959
例如:暗色主题 + 自定义配色
60-
```plain
60+
```infographic
6161
infographic list-row-simple-horizontal-arrow
6262
theme dark
6363
palette
@@ -74,7 +74,7 @@ theme
7474

7575
例如:手绘风格(rough)
7676

77-
```plain
77+
```infographic
7878
infographic list-row-simple-horizontal-arrow
7979
theme
8080
stylize rough
@@ -91,7 +91,7 @@ theme
9191

9292
- `list-*` 模版
9393

94-
```plain
94+
```infographic
9595
infographic list-grid-badge-card
9696
data
9797
title Feature List
@@ -104,7 +104,7 @@ data
104104

105105
- `sequence-*` 模版
106106

107-
```plain
107+
```infographic
108108
infographic sequence-steps-simple
109109
data
110110
sequences
@@ -116,7 +116,7 @@ data
116116

117117
- `hierarchy-*` 模版
118118

119-
```plain
119+
```infographic
120120
infographic hierarchy-structure
121121
data
122122
root
@@ -128,7 +128,7 @@ data
128128

129129
- `compare-*` 模版
130130

131-
```plain
131+
```infographic
132132
infographic compare-swot
133133
data
134134
compares
@@ -144,7 +144,7 @@ data
144144

145145
四象限图
146146

147-
```plain
147+
```infographic
148148
infographic compare-quadrant-quarter-simple-card
149149
data
150150
compares
@@ -156,7 +156,7 @@ data
156156

157157
- `chart-*` 模版
158158

159-
```plain
159+
```infographic
160160
infographic chart-column-simple
161161
data
162162
values
@@ -170,7 +170,7 @@ data
170170

171171
> 边标签写法:A -label-> B 或 A -->|label| B
172172
173-
```plain
173+
```infographic
174174
infographic relation-dagre-flow-tb-simple-circle-node
175175
data
176176
nodes
@@ -185,7 +185,7 @@ data
185185

186186
- 兜底 `items` 示例
187187

188-
```plain
188+
```infographic
189189
infographic list-row-horizontal-icon-arrow
190190
data
191191
items
@@ -283,7 +283,7 @@ data
283283

284284
绘制互联网技术演进信息图
285285

286-
```plain
286+
```infographic
287287
infographic list-row-horizontal-icon-arrow
288288
data
289289
title Internet Technology Evolution

.skills/infographic-syntax-creator/references/prompt.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ AntV Infographic 语法是一种自定义的 DSL,用于描述信息图渲染
3737

3838
例如:
3939

40-
```plain
40+
```infographic
4141
infographic list-row-horizontal-icon-arrow
4242
data
4343
title Title
@@ -71,7 +71,7 @@ theme
7171
- `hierarchy-*`:使用单一 `root`,通过 `children` 嵌套(不要重复 `root`
7272
- `theme` 用于自定义主题(palette、font 等)
7373
例如:暗色主题 + 自定义配色
74-
```plain
74+
```infographic
7575
infographic list-row-simple-horizontal-arrow
7676
theme dark
7777
palette
@@ -88,7 +88,7 @@ theme
8888

8989
例如:手绘风格(rough)
9090

91-
```plain
91+
```infographic
9292
infographic list-row-simple-horizontal-arrow
9393
theme
9494
stylize rough
@@ -105,7 +105,7 @@ theme
105105

106106
- `list-*` 模版
107107

108-
```plain
108+
```infographic
109109
infographic list-grid-badge-card
110110
data
111111
title Feature List
@@ -118,7 +118,7 @@ data
118118

119119
- `sequence-*` 模版
120120

121-
```plain
121+
```infographic
122122
infographic sequence-steps-simple
123123
data
124124
sequences
@@ -130,7 +130,7 @@ data
130130

131131
- `hierarchy-*` 模版
132132

133-
```plain
133+
```infographic
134134
infographic hierarchy-structure
135135
data
136136
root
@@ -142,7 +142,7 @@ data
142142

143143
- `compare-*` 模版
144144

145-
```plain
145+
```infographic
146146
infographic compare-swot
147147
data
148148
compares
@@ -158,7 +158,7 @@ data
158158

159159
四象限图
160160

161-
```plain
161+
```infographic
162162
infographic compare-quadrant-quarter-simple-card
163163
data
164164
compares
@@ -170,7 +170,7 @@ data
170170

171171
- `chart-*` 模版
172172

173-
```plain
173+
```infographic
174174
infographic chart-column-simple
175175
data
176176
values
@@ -184,7 +184,7 @@ data
184184

185185
> 边标签写法:A -label-> B 或 A -->|label| B
186186
187-
```plain
187+
```infographic
188188
infographic relation-dagre-flow-tb-simple-circle-node
189189
data
190190
nodes
@@ -199,7 +199,7 @@ data
199199

200200
- 兜底 `items` 示例
201201

202-
```plain
202+
```infographic
203203
infographic list-row-horizontal-icon-arrow
204204
data
205205
items
@@ -297,7 +297,7 @@ data
297297

298298
绘制互联网技术演进信息图
299299

300-
```plain
300+
```infographic
301301
infographic list-row-horizontal-icon-arrow
302302
data
303303
title Internet Technology Evolution
@@ -341,7 +341,7 @@ data
341341

342342
只输出一个 `plain` 代码块,不添加任何解释性文字:
343343

344-
```plain
344+
```infographic
345345
infographic list-row-horizontal-icon-arrow
346346
data
347347
title 标题

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@antv/infographic",
3-
"version": "0.2.12",
3+
"version": "0.2.13",
44
"description": "An Infographic Generation and Rendering Framework, bring words to life!",
55
"keywords": [
66
"antv",

site/src/content/learn/infographic-syntax.en.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Infographic syntax is a Mermaid-like grammar for describing templates, designs,
66

77
<InfographicStreamRunner>
88

9-
```plain
9+
```infographic
1010
infographic list-row-horizontal-icon-arrow
1111
data
1212
title Customer Growth Engine
@@ -63,7 +63,7 @@ Information structure captures the data abstraction that determines content and
6363

6464
The entry point starts with `infographic [template-name]`, followed by blocks that describe the template, design, data, and theme.
6565

66-
```plain
66+
```infographic
6767
infographic list-row-horizontal-icon-arrow
6868
data
6969
title Customer Growth Engine
@@ -91,15 +91,15 @@ data
9191

9292
The template is declared directly in the entry point.
9393

94-
```plain
94+
```infographic
9595
infographic <template-name>
9696
```
9797

9898
### design {#design}
9999

100100
The `design` block selects structures, cards, titles, and other modules.
101101

102-
```plain
102+
```infographic
103103
design
104104
structure <structure-name>
105105
gap 12
@@ -130,7 +130,7 @@ In general, the selected template expects a certain data item field. For example
130130

131131
List data represents a group of peer items without ordering, common for checklists or feature lists. Use `lists`.
132132

133-
```plain
133+
```infographic
134134
infographic list-grid-compact-card
135135
data
136136
title Fruit Shopping List
@@ -147,7 +147,7 @@ data
147147

148148
Sequence data is similar to lists but ordered, often used for timelines or steps. Use `sequences`.
149149

150-
```plain
150+
```infographic
151151
infographic sequence-steps-simple
152152
data
153153
sequences
@@ -158,7 +158,7 @@ data
158158

159159
Use the `order` field to specify sorting (`asc` or `desc`). In the example below, `order desc` means items are arranged in descending order.
160160

161-
```plain
161+
```infographic
162162
infographic sequence-stairs-front-pill-badge
163163
data
164164
title Job Level Sequence
@@ -173,7 +173,7 @@ data
173173

174174
Hierarchy data describes a tree structure, common for org charts or taxonomies. Use `root` for the root node and `children` recursively for descendants.
175175

176-
```plain
176+
```infographic
177177
infographic hierarchy-structure
178178
data
179179
root
@@ -187,7 +187,7 @@ data
187187

188188
Compare data is for side-by-side or grouped comparisons (e.g. SWOT or quadrant charts). Use `compares`.
189189

190-
```plain
190+
```infographic
191191
infographic quadrant-quarter-simple-card
192192
data
193193
compares
@@ -203,7 +203,7 @@ data
203203

204204
Compare items can also include `children` to create comparison hierarchies, where each root item is a comparison target and children are its metrics:
205205

206-
```plain
206+
```infographic
207207
infographic compare-swot
208208
data
209209
compares
@@ -223,7 +223,7 @@ data
223223

224224
Statistical data showcases metrics, using `values`.
225225

226-
```plain
226+
```infographic
227227
infographic chart-column-simple
228228
data
229229
values
@@ -237,7 +237,7 @@ data
237237

238238
For grouped data, use `category` (with a compatible template), for example:
239239

240-
```plain
240+
```infographic
241241
infographic chart-column-grouped-simple
242242
data
243243
title Rainfall Data
@@ -274,7 +274,7 @@ Relation data describes node-to-node connections, such as flowcharts and network
274274

275275
**YAML-style:**
276276

277-
```plain
277+
```infographic
278278
infographic relation-dagre-flow-tb-simple-circle-node
279279
data
280280
title Relation Graph
@@ -290,7 +290,7 @@ data
290290

291291
**Mermaid-style (flowchart-like):**
292292

293-
```plain
293+
```infographic
294294
infographic relation-dagre-flow-tb-simple-circle-node
295295
data
296296
nodes
@@ -308,7 +308,7 @@ data
308308

309309
For simple relation graphs, you can omit `nodes` and define nodes directly in `relations`:
310310

311-
```plain
311+
```infographic
312312
infographic relation-dagre-flow-tb-simple-circle-node
313313
data
314314
relations
@@ -341,13 +341,13 @@ The `theme` block switches themes and tweaks palettes, fonts, and stylization.
341341

342342
Use a preset theme:
343343

344-
```plain
344+
```infographic
345345
theme <theme-name>
346346
```
347347

348348
Use a custom theme:
349349

350-
```plain
350+
```infographic
351351
theme
352352
colorBg #0b1220
353353
colorPrimary #ff5a5f

0 commit comments

Comments
 (0)