-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
220 lines (219 loc) · 4.23 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
const { version, homepage, repository } = require('./package.json');
module.exports = {
plugins: [
{
resolve: '@antv/gatsby-theme-antv',
options: {
GATrackingId: 'UA-148148901-4',
},
},
],
// Customize your site metadata:
siteMetadata: {
title: 'G6',
description: 'A collection of charts made with the Grammar of Graphics',
siteUrl: homepage,
githubUrl: repository.url,
versions: {
[version]: 'https://g6.antv.vision',
'3.2.x': 'https://g6-v3-2.antv.vision',
},
navs: [
{
slug: 'docs/manual/introduction',
title: {
zh: '文档',
en: 'Docs',
},
},
{
slug: 'docs/api/Graph',
title: {
zh: 'API',
en: 'API',
},
},
{
slug: 'examples/tree/compactBox',
title: {
zh: '图表演示',
en: 'Examples',
},
},
],
docs: [
{
slug: 'manual/FAQ',
title: {
zh: 'FAQ',
en: 'FAQ',
},
order: 2,
},
{
slug: 'manual/tutorial',
title: {
zh: '入门教程',
en: 'Tutorial',
},
order: 3,
},
{
slug: 'manual/middle',
title: {
zh: '核心概念',
en: 'Middle',
},
order: 4,
},
{
slug: 'manual/middle/states',
title: {
zh: '交互与事件',
en: 'Behavior & Event',
},
order: 4,
},
{
slug: 'manual/middle/elements',
title: {
zh: '节点与边',
en: 'Graph Element',
},
},
{
slug: 'manual/middle/elements/nodes',
title: {
zh: '内置节点',
en: 'Default Node',
},
order: 2,
},
{
slug: 'manual/middle/elements/edges',
title: {
zh: '内置边',
en: 'Default Edge',
},
order: 3,
},
{
slug: 'manual/advanced',
title: {
zh: '高级指引',
en: 'Advanced',
},
order: 5,
},
{
slug: 'manual/cases',
title: {
zh: '综合应用',
en: 'Cases',
},
order: 6,
},
{
slug: 'api',
title: {
zh: 'API 文档',
en: 'API Doc',
},
},
{
slug: 'api/nodeEdge',
title: {
zh: '节点和边',
en: 'Node & Edge',
},
order: 4,
},
{
slug: 'api/layout',
title: {
zh: 'Layout',
en: 'Layout',
},
order: 4,
},
{
slug: 'api/properties',
title: {
zh: '属性配置项',
en: 'Properties',
},
order: 10,
},
],
examples: [
{
slug: 'tree',
icon: 'tree', // 图标名可以去 https://antv.alipay.com/zh-cn/g2/3.x/demo/index.html 打开控制台查看图标类名
title: {
zh: '树图',
en: 'Tree Graph',
},
},
{
slug: 'net',
icon: 'net',
title: {
zh: '一般图',
en: 'General Graph',
},
},
{
slug: 'graphql',
icon: 'graphql',
title: {
zh: '其他表达形式',
en: 'Net Charts',
},
},
{
slug: 'shape',
icon: 'shape',
title: {
zh: '元素',
en: 'Shape',
},
},
{
slug: 'interaction',
icon: 'interaction',
title: {
zh: '交互',
en: 'Interaction',
},
},
{
slug: 'scatter',
icon: 'scatter',
title: {
zh: '动画',
en: 'Animation',
},
},
{
slug: 'tool',
icon: 'tool',
title: {
zh: '组件',
en: 'Component',
},
},
{
slug: 'case',
icon: 'case',
title: {
zh: '复杂案例',
en: 'Case',
},
},
],
docsearchOptions: {
apiKey: '9d1cd586972bb492b7b41b13a949ef30',
indexName: 'antv_g6',
},
},
};