@@ -2,24 +2,27 @@ import { defineConfig } from 'dumi';
2
2
import { repository , version } from './package.json' ;
3
3
4
4
export default defineConfig ( {
5
- locales : [ { id : 'zh' , name : '中文' } , { id : 'en' , name : 'English' } ] ,
5
+ locales : [
6
+ { id : 'zh' , name : '中文' } ,
7
+ { id : 'en' , name : 'English' } ,
8
+ ] ,
6
9
themeConfig : {
7
10
title : 'G2Plot' ,
8
11
description : 'A collection of charts made with the Grammar of Graphics' ,
9
12
defaultLanguage : 'zh' ,
10
- siteUrl : 'https://g2plot.antv.vision ' ,
13
+ siteUrl : 'https://g2plot.antv.antgroup.com ' ,
11
14
isAntVSite : false ,
12
- githubUrl : repository . url , // GitHub 地址
13
- showSearch : true , // 是否显示搜索框
14
- showGithubCorner : true , // 是否显示头部的 GitHub icon
15
- showGithubStars : true , // 是否显示 GitHub star 数量
16
- showAntVProductsCard : true , // 是否显示 AntV 产品汇总的卡片
17
- showLanguageSwitcher : true , // 是否显示官网语言切换
18
- showWxQrcode : true , // 是否显示头部菜单的微信公众号
19
- showChartResize : true , // 是否在 demo 页展示图表视图切换
20
- showAPIDoc : true , // 是否在 demo 页展示API文档
15
+ githubUrl : repository . url , // GitHub 地址
16
+ showSearch : true , // 是否显示搜索框
17
+ showGithubCorner : true , // 是否显示头部的 GitHub icon
18
+ showGithubStars : true , // 是否显示 GitHub star 数量
19
+ showAntVProductsCard : true , // 是否显示 AntV 产品汇总的卡片
20
+ showLanguageSwitcher : true , // 是否显示官网语言切换
21
+ showWxQrcode : true , // 是否显示头部菜单的微信公众号
22
+ showChartResize : true , // 是否在 demo 页展示图表视图切换
23
+ showAPIDoc : true , // 是否在 demo 页展示API文档
21
24
versions : {
22
- [ version ] : 'https://g2plot.antv.vision ' ,
25
+ [ version ] : 'https://g2plot.antv.antgroup.com ' ,
23
26
'1.x' : 'https://g2plot-v1.antv.vision' ,
24
27
} ,
25
28
navs : [
@@ -68,7 +71,7 @@ export default defineConfig({
68
71
zh : '图表性能检测工具' ,
69
72
en : 'Charts performance test' ,
70
73
} ,
71
- url : 'https://git.hust.cc/charts-perf/'
74
+ url : 'https://git.hust.cc/charts-perf/' ,
72
75
} ,
73
76
{
74
77
name : {
@@ -120,23 +123,23 @@ export default defineConfig({
120
123
en : 'Forum' ,
121
124
} ,
122
125
title : {
123
- zh : 'AntV 芒种日 图新物:GraphInsight 发布 ' ,
124
- en : 'AntV Seeds Day Graph New: GraphInsight Released ' ,
126
+ zh : '远方 · 远芳 AntV 2022 年度发布 ' ,
127
+ en : 'Yuanyuan · Yuanfang AntV 2022 Annual Release ' ,
125
128
} ,
126
- date : '2022.06.06 ' ,
127
- link : 'https://github. com/antvis/GraphInsight ' ,
129
+ date : '2022.11.22 ' ,
130
+ link : 'https://www.yuque. com/antv/blog/1122_6 ' ,
128
131
} ,
129
132
{
130
133
type : {
131
134
zh : '论坛' ,
132
135
en : 'Forum' ,
133
136
} ,
134
137
title : {
135
- zh : 'SEE Conf 2022 支付宝体验科技大会 ' ,
136
- en : 'SEE Conf 2022 Alipay Experience Technology Conference ' ,
138
+ zh : 'AntV 芒种日 图新物:GraphInsight 发布 ' ,
139
+ en : 'AntV Seeds Day Graph New: GraphInsight Released ' ,
137
140
} ,
138
- date : '2022.01.08 ' ,
139
- link : 'https://seeconf.antfin. com/' ,
141
+ date : '2022.06.06 ' ,
142
+ link : 'https://github. com/antvis/GraphInsight ' ,
140
143
} ,
141
144
] ,
142
145
features : [
@@ -170,7 +173,7 @@ export default defineConfig({
170
173
} ,
171
174
description : {
172
175
zh : '保证图表在任何显示尺寸、任何数据状态下的可读性' ,
173
- en : ' The responsive ability of g2plot guarantee your chart\ 's readability in any display space and data status.' ,
176
+ en : " The responsive ability of g2plot guarantee your chart's readability in any display space and data status." ,
174
177
} ,
175
178
} ,
176
179
] ,
@@ -185,21 +188,24 @@ export default defineConfig({
185
188
zh : '来这里尝试一下我们正在开发中的高级图表功能' ,
186
189
en : 'We are now working on some advanced and powerful chart features.' ,
187
190
} ,
188
- link : `/examples/plugin/multi-view ` ,
191
+ link : `/examples` ,
189
192
image : 'https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*SXLtRaVPGvMAAAAAAAAAAABkARQnAQ' ,
190
193
isAppLogo : true ,
191
194
} ,
192
195
] ,
193
196
/** 首页合作公司 */
194
197
companies : [
195
198
{ name : '阿里云' , img : 'https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*V_xMRIvw2iwAAAAAAAAAAABkARQnAQ' } ,
196
- { name : '支付宝' , img : 'https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*lYDrRZvcvD4AAAAAAAAAAABkARQnAQ' , } ,
197
- { name : '天猫' , img : 'https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*BQrxRK6oemMAAAAAAAAAAABkARQnAQ' , } ,
198
- { name : '淘宝网' , img : 'https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*1l8-TqUr7UcAAAAAAAAAAABkARQnAQ' , } ,
199
- { name : '网上银行' , img : 'https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*ZAKFQJ5Bz4MAAAAAAAAAAABkARQnAQ' , } ,
200
- { name : '京东' , img : 'https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*yh-HRr3hCpgAAAAAAAAAAABkARQnAQ' , } ,
201
- { name : 'yunos' , img : 'https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*_js7SaNosUwAAAAAAAAAAABkARQnAQ' , } ,
202
- { name : '菜鸟' , img : 'https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*TgV-RZDODJIAAAAAAAAAAABkARQnAQ' , } ,
199
+ { name : '支付宝' , img : 'https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*lYDrRZvcvD4AAAAAAAAAAABkARQnAQ' } ,
200
+ { name : '天猫' , img : 'https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*BQrxRK6oemMAAAAAAAAAAABkARQnAQ' } ,
201
+ { name : '淘宝网' , img : 'https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*1l8-TqUr7UcAAAAAAAAAAABkARQnAQ' } ,
202
+ {
203
+ name : '网上银行' ,
204
+ img : 'https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*ZAKFQJ5Bz4MAAAAAAAAAAABkARQnAQ' ,
205
+ } ,
206
+ { name : '京东' , img : 'https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*yh-HRr3hCpgAAAAAAAAAAABkARQnAQ' } ,
207
+ { name : 'yunos' , img : 'https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*_js7SaNosUwAAAAAAAAAAABkARQnAQ' } ,
208
+ { name : '菜鸟' , img : 'https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*TgV-RZDODJIAAAAAAAAAAABkARQnAQ' } ,
203
209
] ,
204
210
// 文档目录的信息
205
211
docs : [
@@ -242,7 +248,7 @@ export default defineConfig({
242
248
en : 'Common Configuration' ,
243
249
} ,
244
250
order : 5 ,
245
- }
251
+ } ,
246
252
] ,
247
253
// 示例分类的信息
248
254
examples : [
@@ -412,8 +418,8 @@ export default defineConfig({
412
418
} ,
413
419
announcement : {
414
420
zh : '' ,
415
- en : ''
416
- }
421
+ en : '' ,
422
+ } ,
417
423
} ,
418
424
analytics : {
419
425
// Google Analytics code, will be enabled after configuration
@@ -426,8 +432,6 @@ export default defineConfig({
426
432
// 根据自己项目结构书写绝对路径
427
433
'@' : __dirname ,
428
434
} ,
429
- links : [
430
- ] ,
431
- scripts : [
432
- ] ,
435
+ links : [ ] ,
436
+ scripts : [ ] ,
433
437
} ) ;
0 commit comments