diff --git a/packages/react-node/package.json b/packages/react-node/package.json index 0ef0185d384..589613aa76b 100644 --- a/packages/react-node/package.json +++ b/packages/react-node/package.json @@ -40,7 +40,7 @@ "@typescript-eslint/eslint-plugin": "^4.11.1", "@umijs/test": "^3.0.5", "csstype": "^3.1.3", - "dumi": "^1.1.1", + "dumi": "2.2.14", "father-build": "^1.17.2", "gh-pages": "^3.0.0", "lint-staged": "^10.0.7", diff --git a/packages/site/.dumirc.ts b/packages/site/.dumirc.ts index 421e5da19e7..33589599c81 100644 --- a/packages/site/.dumirc.ts +++ b/packages/site/.dumirc.ts @@ -473,33 +473,6 @@ export default defineConfig({ }, ], }, - /** 新闻公告,优先选择配置的,如果没有配置则使用远程的! */ - news: [ - { - type: { - zh: '推荐', - en: 'News', - }, - title: { - zh: 'G6 5.0 正式版本发布', - en: 'G6 5.0 is released!', - }, - date: '2024.06.06', - link: 'https://g6.antv.antgroup.com/', - }, - { - 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 ee4dfc88a59..da0af155e23 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", + "dev": "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 dev", + "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",