-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathastro.config.mjs
More file actions
104 lines (102 loc) · 2.68 KB
/
Copy pathastro.config.mjs
File metadata and controls
104 lines (102 loc) · 2.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
import { defineConfig } from 'astro/config';
import { antvSite } from '@antv/astro-theme-antv';
import react from '@astrojs/react';
import mdx from '@astrojs/mdx';
import sitemap from '@astrojs/sitemap';
const siteConfig = {
site: {
title: 'AntV',
origin: 'https://antv.antgroup.com',
repository: 'https://github.com/antvis/antvis.github.io',
defaultLocale: 'zh',
locales: ['zh', 'en'],
favicon:
'https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*7svFR6wkPMoAAAAAAAAAAAAADmJ7AQ/original',
logo: 'https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*A-lcQbVTpjwAAAAAAAAAAAAADmJ7AQ/original',
description: {
zh: 'AntV 是蚂蚁集团全新一代数据可视化解决方案,提供简单方便、专业可靠、无限可能的数据可视化最佳实践。',
en: 'AntV is Ant Group’s next-generation data visualization solution, providing simple, reliable, and extensible visualization practices.',
},
},
content: {
docs: './docs',
examples: null,
edit: {
branch: 'master',
path: 'docs',
},
sidebar: {
'specification/principles': {
zh: '设计价值观',
en: 'Design Values',
order: 0,
},
'specification/language': {
zh: '设计语言',
en: 'Language',
order: 1,
},
'specification/strategy': {
zh: '设计策略',
en: 'Strategies',
order: 2,
},
'specification/graph': {
zh: '图表设计指引',
en: 'Visualization Guides',
order: 3,
},
'specification/module': {
zh: '组件设计指引',
en: 'Component Guides',
order: 4,
},
'specification/tool': {
zh: '工具',
en: 'Tools',
order: 6,
},
},
},
navigation: [
{
text: { zh: '设计语言', en: 'Design' },
href: '/specification/principles/basic',
},
],
search: {
enabled: false,
},
analytics: {
GoogleAnalytics: { id: 'G-96Q5R280YF' },
},
home: {
title: {
zh: '让 AI 栩栩如生',
en: 'Make AI come alive',
},
description: {
zh: '蚂蚁企业级数据可视化解决方案,让人们在数据世界里获得视觉化思考能力。',
en: 'Enterprise visualization technology that helps people think visually in a world of data.',
},
},
qa: {
enabled: true,
},
slots: {
home: {
hero: ['./src/Home.astro'],
features: ['./src/Content.astro'],
},
},
};
export default defineConfig({
devToolbar: { enabled: false },
integrations: [
antvSite(siteConfig),
react(),
mdx(),
sitemap(),
],
redirects: { '/result': '/zh/result/' },
});