Skip to content

Commit

Permalink
chore: remote site news, update site deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarebecca committed Oct 30, 2024
1 parent cfb133f commit 811d2c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 33 deletions.
27 changes: 0 additions & 27 deletions packages/site/.dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -470,33 +470,6 @@ export default defineConfig({
},
],
},
/** 新闻公告,优先选择配置的,如果没有配置则使用远程的! */
news: [
{
type: {
zh: '推荐',
en: 'News',
},
title: {
zh: 'G6 5.0-beta 闪亮登场',
en: 'G6 5.0-beta is released!',
},
date: '2023.08.31',
link: 'https://zhuanlan.zhihu.com/p/653709725?',
},
{
type: {
zh: '推荐',
en: 'News',
},
title: {
zh: '图可视分析与搭建平台 GraphInsight 开源',
en: 'GraphInsight is opened source!',
},
date: '2022.11.22',
link: 'https://www.yuque.com/antv/blog/nyl5bkhdkicgm7v8',
},
],
/** 首页特性介绍 */
features: [
{
Expand Down
14 changes: 8 additions & 6 deletions packages/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,16 @@
"license": "MIT",
"author": "https://github.com/orgs/antvis/people",
"scripts": {
"site:build": "dumi build",
"site:develop": "dumi dev",
"site:preview": "dumi preview",
"site:deploy": "npm run site:build && gh-pages -d dist",
"start": "npm run site:develop"
"build": "dumi build",
"develop": "dumi dev",
"preview": "dumi preview",
"deploy": "npm run cname && gh-pages -d dist -r [email protected]:antvis/g6-4.x-site.git",
"start": "npm run site:develop",
"cname": "echo g6.antv.vision > dist/CNAME"
},
"devDependencies": {
"cross-env": "^7.0.3"
"cross-env": "^7.0.3",
"gh-pages": "^3.0.0"
},
"dependencies": {
"@ant-design/icons": "^4.0.6",
Expand Down

0 comments on commit 811d2c2

Please sign in to comment.