forked from antvis/G2Plot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
320 lines (319 loc) · 6.76 KB
/
gatsby-config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
const { repository, version } = require('./package.json');
module.exports = {
plugins: [
{
resolve: '@antv/gatsby-theme-antv',
options: {
// eslint-disable-next-line quotes
GATrackingId: `UA-148148901-2`,
},
},
],
// Customize your site metadata:
siteMetadata: {
isAntVSite: false,
title: 'G2Plot',
description: 'A collection of charts made with the Grammar of Graphics',
siteUrl: 'https://g2plot.antv.vision',
githubUrl: repository.url,
showGithubStar: true,
showGithubCorner: false,
versions: {
[version]: 'https://g2plot.antv.vision',
'1.x': 'https://g2plot-v1.antv.vision',
},
galleryMenuCloseAll: true,
showChartResize: true, // 是否在demo页展示图表视图切换
showAPIDoc: true, // 是否在demo页展示API文档
showExampleDemoTitle: true, // demo 页截图展示 title
themeSwitcher: 'g2plot',
playground: {
extraLib: '',
container: '<div id="container"><div id="container1"></div><div id="container2"></div></div>', // 定义演示的渲染节点,默认 <div id="container" />
devDependencies: {
typescript: 'latest',
},
},
mdPlayground: {
// markdown 文档中的 playground 若干设置
splitPaneMainSize: '50%',
},
navs: [
{
slug: 'docs/manual',
title: {
zh: '教程',
en: 'Manual',
},
order: 2,
},
{
slug: 'docs/api',
title: {
zh: 'API',
en: 'API',
},
order: 1,
},
{
slug: 'examples',
title: {
zh: '图表示例',
en: 'Examples',
},
order: 0,
},
],
ecosystems: [
{
name: {
zh: 'Ant Design Charts(React)',
en: 'Ant Design Charts (React)',
},
url: 'https://charts.ant.design/',
},
{
name: {
zh: 'G2Plot 可视化圈子(博客文章)',
en: 'Blog posts of G2Plot',
},
url: 'https://www.yuque.com/antv/g2plot',
},
{
name: {
zh: 'AntV ThemeSet(主题构建器)',
en: 'AntV ThemeSet',
},
url: 'https://theme-set.antv.vision',
},
{
name: {
zh: 'Vis Dashboard(可视化精选集)',
en: 'Vis Dashboard',
},
url: 'https://vis-dashboard.antv.vision',
},
],
docs: [
{
slug: 'manual/plots',
title: {
zh: '图表指引',
en: 'Plot Guide',
},
order: 3,
},
{
slug: 'api/plots',
title: {
zh: '基础图表',
en: 'Plots',
},
order: 2,
},
{
slug: 'api/advanced-plots',
title: {
zh: '高级图表',
en: 'Advanced plots',
},
order: 3,
},
{
slug: 'api/components',
title: {
zh: '图表组件',
en: 'Components',
},
order: 4,
},
{
slug: 'api/options',
title: {
zh: '通用配置',
en: 'Common Configuration',
},
order: 5,
}
],
examples: [
{
slug: 'gallery',
icon: 'gallery',
title: {
zh: '',
en: '',
},
},
{
slug: 'facet',
icon: 'gallery',
title: {
zh: 'Facet ❤️',
en: '分面图 ❤️',
},
},
{
slug: 'case',
icon: 'gallery',
title: {
zh: '场景案例',
en: 'Show Case',
},
},
{
slug: 'line',
icon: 'line', // 图表名可以去 https://antv.alipay.com/zh-cn/g2/3.x/demo/index.html 打开控制台查看图标类名
title: {
zh: '折线图',
en: 'Line',
},
},
{
slug: 'area',
icon: 'area',
title: {
zh: '面积图',
en: 'Area',
},
},
{
slug: 'column',
icon: 'column',
title: {
zh: '柱形图',
en: 'Column',
},
},
{
slug: 'bar',
icon: 'bar',
title: {
zh: '条形图',
en: 'Bar',
},
},
{
slug: 'pie',
icon: 'pie',
title: {
zh: '饼图',
en: 'Pie',
},
},
{
slug: 'dual-axes',
icon: 'line',
title: {
zh: '双轴图',
en: 'Dual Axes',
},
},
{
slug: 'progress-plots',
icon: 'gauge',
title: {
zh: '进度图',
en: 'Progress Plots',
},
},
{
slug: 'scatter',
icon: 'point',
title: {
zh: '散点气泡图',
en: 'Scatter and Bubble',
},
},
{
slug: 'rose',
icon: 'rose',
title: {
zh: '玫瑰图',
en: 'Rose',
},
},
{
slug: 'relation-plots',
icon: 'sankey',
title: {
zh: '关系图',
en: 'Relation Plots',
},
},
{
slug: 'heatmap',
icon: 'heatmap',
title: {
zh: '热力图',
en: 'Heatmap',
},
},
{
slug: 'tiny',
icon: 'other',
title: {
zh: '迷你图',
en: 'Tiny Plots',
},
},
{
slug: 'more-plots',
icon: 'other',
title: {
zh: '更多图表',
en: 'More Plots',
},
},
{
slug: 'treemap',
icon: 'other',
title: {
zh: '矩形树图',
en: 'Treemap',
},
},
// OTHERS
{
slug: 'plugin',
icon: 'other',
title: {
zh: '高级图表',
en: 'Advanced Plots',
},
},
{
slug: 'dynamic-plots',
icon: 'other',
title: {
zh: '动态交互',
en: 'Dynamic Plots',
},
},
{
slug: 'component',
icon: 'other',
title: {
zh: '图表组件',
en: 'Components',
},
},
{
slug: 'general',
icon: 'other',
title: {
zh: '通用配置',
en: 'General Configuration',
},
},
],
docsearchOptions: {
apiKey: '0d19588d7661a81faa8b75f6ade80321',
indexName: 'antv_g2plot',
},
announcement: {
zh: "AntV G2 / G2Plot 2021 品牌日:[潜心深造 · 统计图表](https://www.yuque.com/antv/blog/2021g2)",
en: "AntV G2 / G2Plot 2021 品牌日:[潜心深造 · 统计图表](https://www.yuque.com/antv/blog/2021g2)",
}
},
};