From 944e15f0e3cc201724ab2e5dc0aea9c435c257be Mon Sep 17 00:00:00 2001 From: ai-qing-hai Date: Wed, 22 Nov 2023 17:18:37 +0800 Subject: [PATCH] chore: update dumi-theme-antv --- site/.dumirc.ts | 29 ++++++++++++++++++++--------- site/package.json | 2 +- 2 files changed, 21 insertions(+), 10 deletions(-) diff --git a/site/.dumirc.ts b/site/.dumirc.ts index 7415d5602..4ed10f662 100644 --- a/site/.dumirc.ts +++ b/site/.dumirc.ts @@ -13,6 +13,7 @@ export default defineConfig({ defaultLanguage: 'zh', isAntVSite: false, githubUrl: repository.url, // GitHub 地址 + footerTheme: 'light', // 白色 底部主题 showSearch: true, // 是否显示搜索框 showGithubCorner: true, // 是否显示头部的 GitHub icon showGithubStars: true, // 是否显示 GitHub star 数量 @@ -124,30 +125,40 @@ export default defineConfig({ }, ], detail: { + engine: { + zh: 'F2', + en: 'F2', + }, title: { - zh: 'F2 移动端可视化引擎', - en: 'F2: Mobile visualization engine', + zh: 'F2·移动端可视化引擎', + en: 'F2·Mobile visualization engine', }, description: { zh: 'F2 是一个专注于移动端,面向常规统计图表,开箱即用的可视化引擎,完美支持 H5 环境同时兼容多种环境(Node, 小程序),完备的图形语法理论,满足你的各种可视化需求,专业的移动设计指引为你带来最佳的移动端图表体验。', en: 'F2 is an out-of-the-box visualization engine focused on the mobile terminal, oriented to conventional statistical charts, perfectly supporting the H5 environment and compatible with multiple environments (Node, applet), complete graphics grammar theory, to meet your various visualization needs , professional mobile design guidelines to bring you the best mobile graphics experience', }, image: - 'https://gw.alipayobjects.com/zos/finxbff/compress-tinypng/870e2e92-6187-4729-889c-232a7df0998a.png', + 'https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*wi05Q7Za5ZIAAAAAAAAAAAAADmJ7AQ/original', + imageStyle: { + marginLeft: '80px', + marginTop: '30px', + transform: 'scale(1.4)', + }, buttons: [ { text: { - zh: '图表示例', - en: 'Examples', + zh: '开始使用', + en: 'Getting Started', }, - link: `/examples`, + link: `/tutorial/getting-started`, + }, { text: { - zh: '开始使用', - en: 'Getting Started', + zh: '图表示例', + en: 'Examples', }, - link: `/tutorial/getting-started`, + link: `/examples`, type: 'primary', }, ], diff --git a/site/package.json b/site/package.json index bf37ad634..929b1ecef 100644 --- a/site/package.json +++ b/site/package.json @@ -20,7 +20,7 @@ "site:start": "npm run site:develop" }, "dependencies": { - "@antv/dumi-theme-antv": "^0.3.5", + "@antv/dumi-theme-antv": "^0.4.3", "@antv/f-react": "~0.0.7", "@antv/f-test-utils": "1.0.3", "@antv/f2": "^5.0.4",