From 811d2c220043aa6826c2b2c668afa9203d8491f5 Mon Sep 17 00:00:00 2001 From: Aaron Date: Wed, 30 Oct 2024 20:52:54 +0800 Subject: [PATCH] chore: remote site news, update site deploy --- packages/site/.dumirc.ts | 27 --------------------------- packages/site/package.json | 14 ++++++++------ 2 files changed, 8 insertions(+), 33 deletions(-) diff --git a/packages/site/.dumirc.ts b/packages/site/.dumirc.ts index 3ae2bd59a10..4c75aa4f212 100644 --- a/packages/site/.dumirc.ts +++ b/packages/site/.dumirc.ts @@ -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: [ { diff --git a/packages/site/package.json b/packages/site/package.json index 377763b1f54..458ab5390f0 100644 --- a/packages/site/package.json +++ b/packages/site/package.json @@ -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 git@github.com: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",