forked from antvis/GUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
101 lines (100 loc) · 1.95 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
const { repository, version } = 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: {
isAntVSite: false,
title: 'GUI',
description: 'UI made with G of AntV',
siteUrl: 'https://gui.antv.vision',
githubUrl: repository.url,
showAPIDoc: true, // 是否在demo页展示API文档
playground: {
extraLib: '',
devDependencies: {
typescript: 'latest',
},
},
mdPlayground: {
// markdown 文档中的 playground 若干设置
splitPaneMainSize: '50%',
},
versions: {
[version]: 'https://gui.antv.vision',
},
navs: [
{
slug: 'docs/api',
title: {
zh: 'API',
en: 'API',
},
order: 1,
},
{
slug: 'examples',
title: {
zh: '组件示例',
en: 'Examples',
},
order: 0,
},
],
docs: [
{
slug: 'api/ui',
title: {
zh: '基础 UI',
en: 'Basic UI',
},
order: 2,
},
],
examples: [
{
slug: 'gallery',
icon: 'gallery',
title: {
zh: '',
en: '',
},
},
{
slug: 'basic-ui',
icon: 'gallery',
title: {
zh: '基础 UI',
en: 'Basic UI',
},
},
{
slug: 'chart-ui',
icon: 'gallery',
title: {
zh: '图表组件',
en: 'Chart UI',
},
},
{
slug: 'others',
icon: 'other',
title: {
zh: '其它 UI',
en: 'Other UI',
},
},
],
docsearchOptions: {
// apiKey: '0d19588d7661a81faa8b75f6ade80321',
indexName: 'antv_gui',
},
},
};