-
Notifications
You must be signed in to change notification settings - Fork 34
/
gatsby-config.js
176 lines (176 loc) · 4.15 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
require('dotenv').config();
module.exports = {
plugins: [
{
resolve: '@opensumi/gatsby-theme',
options: {
GATrackingId: 'G-63DR4G0WD7',
theme: {
'primary-color': '#9f5fdb'
},
pwa: true,
cname: false,
codeSplit: true
}
}
],
siteMetadata: {
title: 'OpenSumi',
description:
'一款帮助你快速搭建本地和云端 IDE 的框架 - A framework helps you quickly build Cloud or Desktop IDE products.',
siteUrl: 'https://opensumi.com',
logo: {
img:
'https://img.alicdn.com/imgextra/i2/O1CN01dqjQei1tpbj9z9VPH_!!6000000005951-55-tps-87-78.svg',
link: 'https://opensumi.com'
},
logoUrl:
'https://img.alicdn.com/imgextra/i2/O1CN01dqjQei1tpbj9z9VPH_!!6000000005951-55-tps-87-78.svg',
githubUrl: 'https://github.com/opensumi/core',
docsUrl: 'https://github.com/opensumi/docs',
navs: [
{
slug: 'docs/integrate/overview',
title: {
en: 'Documentation',
zh: '集成文档'
}
},
{
slug: 'docs/develop/how-to-contribute',
title: {
en: 'Development',
zh: '开发文档'
}
},
{
slug: 'docs/extension/overview',
title: {
en: 'Extension API',
zh: '插件研发'
}
},
{
slug: 'https://codeblitz.opensumi.com',
title: {
en: 'CodeBlitz',
zh: 'CodeBlitz'
}
}
],
docs: [
{
slug: 'integrate/quick-start',
title: {
zh: '快速开始',
en: 'Quick Start'
},
order: 1
},
{
slug: 'integrate/universal-integrate-case',
title: {
zh: '常见集成场景',
en: 'Integrate Case'
},
order: 2
},
{
slug: 'integrate/module-usage',
title: {
zh: '模块使用',
en: 'Module Usage'
},
order: 3
},
{
slug: 'integrate/extensions-usage',
title: {
zh: '插件使用',
en: 'Extensions Usage'
},
order: 4
},
{
slug: 'integrate/browser-extension',
title: {
zh: '浏览器插件',
en: 'Browser Extension'
},
order: 5
},
{
slug: 'develop/basic-design',
title: {
zh: '基础设计',
en: 'Basic Design'
},
order: 4
},
{
slug: 'develop/module-apis',
title: {
zh: '模块 API',
en: 'Modules API'
},
order: 5
},
{
slug: 'develop/sample',
title: {
zh: '经典案例',
en: 'Sample'
},
order: 6
},
{
slug: 'extension/develop',
title: {
zh: 'OpenSumi 插件开发',
en: 'Extension Develop'
},
order: 2
},
{
slug: 'extension/interface',
title: {
zh: 'OpenSumi API',
en: 'OpenSumi API'
},
order: 3
},
{
slug: 'extension/contributes',
title: {
zh: 'OpenSumi 贡献点',
en: 'OpenSumi Contribute Points'
},
order: 4
},
{
slug: 'extension/vscode',
title: {
zh: 'VS Code 插件开发',
en: 'VS Code Extension Develop'
},
order: 5
}
],
showDingTalkQRCode: true,
showWeChatQRCode: true,
weChatQRCode:
'https://mdn.alipayobjects.com/huamei_1fkuc4/afts/img/A*j_ooQLNzdxcAAAAAAAAAAAAADhviAQ/original',
dingTalkQRCode:
'https://mdn.alipayobjects.com/huamei_1fkuc4/afts/img/A*EMZYTIpdYJsAAAAAAAAAAAAADhviAQ/original',
showSearch: true, // 是否展示搜索框
showChinaMirror: false, // 是否展示国内镜像链接
showLanguageSwitcher: true, // 用于定义是否展示语言切换
showGithubCorner: true, // 是否展示角落的 GitHub 图标
docsearchOptions: {
appId: 'TJ9L5P0JEZ',
apiKey: 'ea572740263d426554e711fca503c754',
indexName: 'opensumi'
},
redirects: []
}
};