This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathgatsby-config.js
173 lines (172 loc) · 3.83 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
const { version, repository, homepage } = require('./package.json');
module.exports = {
plugins: [
{
resolve: '@antv/gatsby-theme-antv',
options: {
GATrackingId: `UA-148148901-11`,
},
},
],
siteMetadata: {
title: 'AntV test site',
description: 'Ant Visualization solution home page',
siteUrl: homepage,
githubUrl: repository.url,
showChartResize: true,
showAPIDoc: true,
themeSwitcher: 'g2plot',
galleryMenuCloseAll: true,
showWxQrcode: true,
wxQrcode:
'https://gw.alipayobjects.com/zos/antfincdn/ZKlx96dsfs/qrcode_for_gh_f52d8b6aa591_258.jpg',
navs: [
{
slug: 'docs/specification/getting-started',
title: {
zh: '设计语言',
en: 'Specification',
},
},
{
slug: 'docs/api',
title: {
zh: 'API 文档示例',
en: 'API docs',
},
},
{
slug: 'examples',
title: {
zh: '图表示例',
en: 'Examples',
},
},
{
slug: 'independent',
title: {
zh: '独立',
en: 'MyApp',
},
// target: '_blank',
},
],
docs: [
{
slug: 'specification/category',
title: {
zh: '分类一',
en: 'category1',
},
order: 4,
},
{
slug: 'specification/category/three',
title: {
zh: '第三层',
en: 'three level',
},
order: 2,
},
{
slug: 'api/antv',
title: {
zh: '测试 G2',
en: 'test G2',
},
order: 0,
},
{
slug: 'api/g2plot',
title: {
zh: 'G2Plot',
en: 'G2Plot',
},
order: 1,
},
],
examples: [
{
slug: 'category',
icon: 'pie',
title: {
zh: '饼图分类',
en: 'Category',
},
},
{
slug: 'scatter',
icon: 'scatter',
title: {
zh: '散点图',
en: 'Scatter',
},
},
{
slug: 'radar',
icon: 'radar',
title: {
zh: '雷达图',
en: 'Radar',
},
},
],
versions: {
[version]: 'https://ant.design',
'2.x': 'https://2x.ant.design',
'1.x': 'https://1x.ant.design',
},
ecosystems: [
{
name: {
zh: '蚂蚁设计',
en: 'Ant Design',
},
url: 'https://2x.ant.design',
},
{
name: {
zh: '图表加工厂',
en: 'ChartCube',
},
url: 'https://chartcube.alipay.com/',
},
],
playground: {
container: '<div id="container" class="ok" />',
playgroundDidMount: 'console.log("playgroundDidMount");',
playgroundWillUnmount: 'console.log("playgroundWillUnmount");',
dependencies: {
'@antv/l7': 'beta',
},
devDependencies: {
typescript: 'latest',
},
htmlCodeTemplate: `<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>{{title}}</title>
</head>
<body>
<div id="container" />
<script src="https://gw.alipayobjects.com/os/antv/pkg/_antv.g2-3.5.1/dist/g2.min.js"></script>
<script src="https://gw.alipayobjects.com/os/antv/pkg/_antv.data-set-0.10.1/dist/data-set.min.js"></script>
<script>
{{code}}
</script>
</body>
</html>`,
},
mdPlayground: {
// markdown 文档中的 playground 若干设置
splitPaneMainSize: '50%',
},
redirects: [],
// 更新公告
announcement: {
zh: '1. 文档更新啦!请前往 API 文档,查看图表组件说明。2. 欢迎大家体验周边生态 Theme-Set 和 vis-dashboard。',
en: 'Docs updated! Please go to the page of API Docs see the details.',
},
},
};