Skip to content

Commit b3b51ba

Browse files
authored
chore: 网站配置更新 (#3405)
* chore: 网站配置更新 * Delete site-deploy.yml * Update release.yml
1 parent ca6004c commit b3b51ba

File tree

3 files changed

+43
-73
lines changed

3 files changed

+43
-73
lines changed

.dumirc.ts

+41-37
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,27 @@ import { defineConfig } from 'dumi';
22
import { repository, version } from './package.json';
33

44
export default defineConfig({
5-
locales: [{ id: 'zh', name: '中文' }, { id: 'en', name: 'English' }],
5+
locales: [
6+
{ id: 'zh', name: '中文' },
7+
{ id: 'en', name: 'English' },
8+
],
69
themeConfig: {
710
title: 'G2Plot',
811
description: 'A collection of charts made with the Grammar of Graphics',
912
defaultLanguage: 'zh',
10-
siteUrl: 'https://g2plot.antv.vision',
13+
siteUrl: 'https://g2plot.antv.antgroup.com',
1114
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文档
2124
versions: {
22-
[version]: 'https://g2plot.antv.vision',
25+
[version]: 'https://g2plot.antv.antgroup.com',
2326
'1.x': 'https://g2plot-v1.antv.vision',
2427
},
2528
navs: [
@@ -68,7 +71,7 @@ export default defineConfig({
6871
zh: '图表性能检测工具',
6972
en: 'Charts performance test',
7073
},
71-
url: 'https://git.hust.cc/charts-perf/'
74+
url: 'https://git.hust.cc/charts-perf/',
7275
},
7376
{
7477
name: {
@@ -120,23 +123,23 @@ export default defineConfig({
120123
en: 'Forum',
121124
},
122125
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',
125128
},
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',
128131
},
129132
{
130133
type: {
131134
zh: '论坛',
132135
en: 'Forum',
133136
},
134137
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',
137140
},
138-
date: '2022.01.08',
139-
link: 'https://seeconf.antfin.com/',
141+
date: '2022.06.06',
142+
link: 'https://github.com/antvis/GraphInsight',
140143
},
141144
],
142145
features: [
@@ -170,7 +173,7 @@ export default defineConfig({
170173
},
171174
description: {
172175
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.",
174177
},
175178
},
176179
],
@@ -185,21 +188,24 @@ export default defineConfig({
185188
zh: '来这里尝试一下我们正在开发中的高级图表功能',
186189
en: 'We are now working on some advanced and powerful chart features.',
187190
},
188-
link: `/examples/plugin/multi-view`,
191+
link: `/examples`,
189192
image: 'https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*SXLtRaVPGvMAAAAAAAAAAABkARQnAQ',
190193
isAppLogo: true,
191194
},
192195
],
193196
/** 首页合作公司 */
194197
companies: [
195198
{ 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' },
203209
],
204210
// 文档目录的信息
205211
docs: [
@@ -242,7 +248,7 @@ export default defineConfig({
242248
en: 'Common Configuration',
243249
},
244250
order: 5,
245-
}
251+
},
246252
],
247253
// 示例分类的信息
248254
examples: [
@@ -412,8 +418,8 @@ export default defineConfig({
412418
},
413419
announcement: {
414420
zh: '',
415-
en: ''
416-
}
421+
en: '',
422+
},
417423
},
418424
analytics: {
419425
// Google Analytics code, will be enabled after configuration
@@ -426,8 +432,6 @@ export default defineConfig({
426432
// 根据自己项目结构书写绝对路径
427433
'@': __dirname,
428434
},
429-
links: [
430-
],
431-
scripts: [
432-
],
435+
links: [],
436+
scripts: [],
433437
});

.github/workflows/release.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,13 @@ jobs:
2121
- run: yarn install
2222
- run: npm run site:build
2323
- run: |
24-
cd public
2524
git init
2625
git config --local user.name antv
2726
git config --local user.email [email protected]
28-
git add .
27+
git add dist -f
2928
git commit -m "update by release action"
3029
- uses: ad-m/github-push-action@master
3130
with:
3231
github_token: ${{secrets.PERSONAL_ACCESS_TOKEN}}
33-
directory: public
34-
branch: gh-pages
32+
branch: g2plot-site
3533
force: true

.github/workflows/site-deploy.yml

-32
This file was deleted.

0 commit comments

Comments
 (0)