forked from antvis/G2Plot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
113 lines (112 loc) · 2.33 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
const { repository } = 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: {
title: 'G2Plot',
description: 'A collection of charts made with the Grammar of Graphics',
siteUrl: 'https://g2plot-v2-beta.antv.vision/',
githubUrl: repository.url,
versions: {
'2.x': 'https://g2plot-v2-beta.antv.vision/',
'1.x': 'https://g2plot.antv.vision/',
},
navs: [
{
slug: 'docs/manual',
title: {
zh: '使用文档',
en: 'Manual',
},
order: 1,
},
{
slug: 'examples',
title: {
zh: '图表示例',
en: 'Examples',
},
order: 0,
},
{
slug: 'https://charts.ant.design/',
title: {
zh: 'React 版本',
en: 'React Version',
},
},
],
docs: [],
examples: [
{
slug: 'line',
icon: 'line', // 图表名可以去 https://antv.alipay.com/zh-cn/g2/3.x/demo/index.html 打开控制台查看图标类名
title: {
zh: '折线图',
en: 'Line Charts',
},
},
{
slug: 'area',
icon: 'area',
title: {
zh: '面积图',
en: 'Area Charts',
},
},
{
slug: 'column',
icon: 'column',
title: {
zh: '柱形图',
en: 'Column Charts',
},
},
{
slug: 'pie',
icon: 'pie',
title: {
zh: '饼图',
en: 'Pie Charts',
},
},
{
slug: 'scatter',
icon: 'point',
title: {
zh: '散点图',
en: 'Scatter Charts',
},
},
{
slug: 'histogram',
icon: 'histogram',
title: {
zh: '直方图',
en: 'Histogram Charts',
},
},
{
slug: 'radar',
icon: 'radar',
title: {
zh: '雷达图',
en: 'Radar Charts',
},
},
// OTHERS
],
docsearchOptions: {
apiKey: '200ec461f4aa0bb4f0e761566f1a1336',
indexName: 'antv_g2plot',
},
},
};