-
Notifications
You must be signed in to change notification settings - Fork 604
/
Copy pathgatsby-config.js
71 lines (70 loc) · 1.42 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
const { repository } = require('./package.json');
module.exports = {
plugins: [
{
resolve: '@antv/gatsby-theme-antv',
options: {
GATrackingId: `UA-148148901-2`,
pathPrefix: '/g2plot',
},
},
],
// Customize your site metadata:
siteMetadata: {
title: 'G2Plot',
description: 'A collection of charts made with the Grammar of Graphics',
githubUrl: repository.url,
navs: [
{
slug: 'docs/manual',
title: {
zh: '使用文档',
en: 'docs',
},
redirect: 'introduction',
},
{
slug: 'examples',
title: {
zh: '图表演示',
en: 'Examples',
},
redirect: 'line/basic',
},
],
docs: [
{
slug: 'manual/plots',
title: {
zh: '图表',
en: 'Charts',
},
},
{
slug: 'manual/advanced',
title: {
zh: '进阶',
en: 'Advanced',
},
},
],
examples: [
{
slug: 'line',
icon: 'line', // 图标名可以去 https://antv.alipay.com/zh-cn/g2/3.x/demo/index.html 打开控制台查看图标类名
title: {
zh: '折线图',
en: 'Line Charts',
},
},
{
slug: 'pie',
icon: 'pie',
title: {
zh: '饼图',
en: 'Pie Charts',
},
},
],
},
};