chore: remote site news, update site deploy (#6457)

This commit is contained in:
Aaron 2024-10-30 21:19:16 +08:00 committed by GitHub
parent 9305d010cc
commit 1baa161d9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 34 deletions

View File

@ -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",

View File

@ -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: [
{

View File

@ -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",