forked from antvis/F2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
198 lines (197 loc) · 3.71 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
const { repository } = require('./package.json');
module.exports = {
plugins: [
{
resolve: '@antv/gatsby-theme-antv',
options: {
// eslint-disable-next-line quotes
GATrackingId: `UA-148148901-6`
}
}
],
// Customize your site metadata:
siteMetadata: {
title: 'F2',
description: 'The Grammar of Graphics in JavaScript',
siteUrl: 'https://f2.antv.vision',
githubUrl: repository.url,
navs: [
{
slug: 'docs/tutorial/getting-started',
title: {
zh: '使用教程',
en: 'Tutorial'
}
},
{
slug: 'docs/api',
title: {
zh: 'API 文档',
en: 'API'
}
},
{
slug: 'examples',
title: {
zh: '图表演示',
en: 'Examples'
}
}
],
docs: [
{
slug: 'tutorial/manual',
title: {
zh: '教程',
en: 'Tutorial'
},
order: 1
},
{
slug: 'api/chart',
title: {
zh: '图表',
en: 'Chart'
},
order: 1
},
{
slug: 'api/graphic',
title: {
zh: '绘图',
en: 'Graphic'
},
order: 2
}
],
examples: [
{
slug: 'gallery',
icon: 'gallery',
title: {
zh: 'Gallery',
en: 'Gallery'
}
},
{
slug: 'line',
icon: 'line',
title: {
zh: '折线图',
en: 'Line Charts'
}
},
{
slug: 'area',
icon: 'area',
title: {
zh: '面积图',
en: 'Area Charts'
}
},
{
slug: 'column',
icon: 'column',
title: {
zh: '柱状图',
en: 'Column Charts'
}
},
{
slug: 'bar',
icon: 'bar',
title: {
zh: '条形图',
en: 'Bar Charts'
}
},
{
slug: 'pie',
icon: 'pie',
title: {
zh: '饼图',
en: 'Pie Charts'
}
},
{
slug: 'radar',
icon: 'radar',
title: {
zh: '雷达图',
en: 'Radar Charts'
}
},
{
slug: 'point',
icon: 'point',
title: {
zh: '点图',
en: 'Point Charts'
}
},
{
slug: 'funnel',
icon: 'funnel',
title: {
zh: '漏斗图',
en: 'Funnel Charts'
}
},
{
slug: 'candlestick',
icon: 'candlestick',
title: {
zh: '蜡烛图',
en: 'Candlestick Charts'
}
},
{
slug: 'relation',
icon: 'relation',
title: {
zh: '关系图',
en: 'Relation Charts'
}
},
{
slug: 'heatmap',
icon: 'heatmap',
title: {
zh: '关系图',
en: 'Heatmap Charts'
}
},
{
slug: 'component',
icon: 'component',
title: {
zh: '功能组件',
en: 'Chart Components'
}
},
{
slug: 'other',
icon: 'other',
title: {
zh: '其他图表',
en: 'Other Chart'
}
}
],
playground: {
playgroundDidMount: 'window.initPlayground()',
container: `
<div class="mobile-container">
<div class="mobile-header"></div>
<div class="mobile-content">
<canvas id="container"/>
</div>
</div>
`
},
docsearchOptions: {
apiKey: '349619374e9488b3f000714317d67381',
indexName: 'antv_f2'
}
}
};