Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .dumi/pages/case/index.en.tsx

This file was deleted.

28 changes: 0 additions & 28 deletions .dumi/pages/case/index.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions .dumi/pages/quick/index.en.tsx

This file was deleted.

28 changes: 0 additions & 28 deletions .dumi/pages/quick/index.tsx

This file was deleted.

44 changes: 26 additions & 18 deletions .dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,18 @@ export default defineConfig({
{ name: 'description', content: 'Ant Visualization solution' },
],
themeConfig: {
title: 'AntV',
description: 'Ant Visualization solution',
title: 'AntV 数据可视化',
description: 'AntV Visualization Team, 让人们在数据世界里获得视觉化思考能力。',
metas: {
title: {
zh: "AntV 数据可视化",
en: "AntV Visualization Team, 让人们在数据世界里获得视觉化思考能力。"
},
description: {
zh: "AntV Visualization",
en: "AntV Visualization Team, Turning data into a visual language for better thinking."
}
},
defaultLanguage: 'zh', // 默认语言
isAntVSite: true, // 是否是 AntV 的大官网
footerTheme: 'light',
Expand All @@ -26,6 +36,8 @@ export default defineConfig({
showAntVProductsCard: true, // 是否显示 AntV 产品汇总的卡片
showLanguageSwitcher: true, // 是否显示官网语言切换
showWxQrcode: true, // 是否显示头部菜单的微信公众号
sitemap: {}, // 开启并采用默认配置
deadLinkChecker: {}, // 开启并采用默认配置
docsearchOptions: {
// 头部搜索框配置
apiKey: '9d1cd586972bb492b7b41b13a949ef30',
Expand All @@ -39,20 +51,13 @@ export default defineConfig({
en: 'Design',
},
},
{
slug: 'case',
title: {
zh: '场景案例',
en: 'Show Case',
},
},
{
slug: 'quick',
title: {
zh: '提交 Issue',
en: 'Quick Issue',
},
},
// {
// slug: 'case',
// title: {
// zh: '场景案例',
// en: 'Show Case',
// },
// },
],
ecosystems: [
// 头部的菜单中的「周边生态」
Expand Down Expand Up @@ -137,8 +142,8 @@ export default defineConfig({
/** 首页技术栈介绍 */
detail: {
title: {
zh: 'Antv',
en: 'Antv',
zh: 'AntV',
en: 'AntV',
},
description: {
zh: 'Ant Visualization solution',
Expand All @@ -149,6 +154,9 @@ export default defineConfig({
alias: {
site: '/site',
},
...(process.env.NODE_ENV === 'production'
? { ssr: { builder: 'webpack' }, mako: false }
: { ssr: false, mako: {} }),
mfsu: false,
analytics: {
// google analytics 的 key (GA 4)
Expand Down
6 changes: 6 additions & 0 deletions mako.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"optimization": {
"skipModules": false,
"concatenateModules": false
}
}
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,23 @@
},
"dependencies": {
"@ant-design/icons": "^4.8.3",
"@antv/dumi-theme-antv": "^0.5.2",
"@antv/dumi-theme-antv": "^0.7.9",
"@antv/g2plot": "^2.3.1",
"@antv/g6": "3.3.7",
"@antv/util": "^3.3.1",
"antd": "5.10.2",
"chroma-js": "^2.1.0",
"classnames": "^2.2.6",
"d3": "^7.8.5",
"dumi": "~2.2.1",
"dumi": "2.4.18",
"gh-pages": "^3.1.0",
"husky": "^8.0.2",
"lodash": "^4.17.20",
"new-github-issue-url": "^1.0.0",
"prettier": "^2.0.0",
"pretty-quick": "^3.1.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"react-github-btn": "^1.4.0"
},
"devDependencies": {
Expand All @@ -49,7 +49,6 @@
},
"license": "MIT",
"scripts": {
"start": "npm run develop",
"build": "dumi build",
"dev": "dumi dev",
"deploy": " npm run build && npm run gh-pages",
Expand Down
Loading
Loading