-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.config.ts
119 lines (118 loc) · 2.8 KB
/
theme.config.ts
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
// @ts-ignore
import UmiLogo from './packages/plugin-docs/client/theme-doc/icons/umi.png';
export default {
title: 'UmiJS',
description: '插件化的企业级前端应用框架',
logo: UmiLogo,
github: 'https://github.com/umijs/umi',
// i18n: [
// { locale: 'en-US', text: 'English' },
// { locale: 'zh-CN', text: '简体中文' },
// ],
searchHotKey: {
macos: '⌘+K',
windows: 'ctrl+k',
},
navs: [
{
path: '/docs',
title: 'Docs',
type: 'nav',
children: [
{
title: 'Tutorials',
children: ['tutorials/getting-started', 'tutorials/blog'],
},
{
title: 'API',
children: [
'api/api',
'api/config',
'api/runtime-config',
'api/commands',
'api/plugin-api',
],
},
{
title: 'Introduce',
children: [
'introduce/introduce',
'introduce/philosophy',
'introduce/contributing',
'introduce/upgrade-to-umi-4',
'introduce/faq',
],
},
{
title: 'Guides',
children: [
'guides/prepare',
'guides/directory-structure',
'guides/routes',
// 'guides/api-routes',
'guides/mock',
'guides/proxy',
'guides/styling',
'guides/client-loader',
'guides/typescript',
// 'guides/deployment',
'guides/env-variables',
// 'guides/errors',
// 'guides/mfsu',
// 'guides/ssr',
// 'guides/ssg',
// 'guides/performance',
// 'guides/compile-speed',
// 'guides/bundle-mode',
'guides/boilerplate',
'guides/generator',
'guides/lint',
'guides/debug',
'guides/test',
'guides/plugins',
'guides/use-vue',
'guides/mpa',
],
},
{
title: 'Umi Max',
children: [
'max/introduce',
'max/layout-menu',
'max/antd',
'max/charts',
'max/data-flow',
'max/request',
'max/access',
'max/i18n',
'max/micro-frontend',
'max/dva',
// 暂不支持
// 'max/bacon',
],
},
],
},
{
path: '/blog',
title: 'Blog',
type: 'nav',
children: [
{
title: 'Blog',
children: [
'umi-4-rc',
'mfsu-faster-than-vite',
'mfsu-independent-usage',
],
},
],
},
{
path: 'https://v3.umijs.org',
title: 'v3.x',
type: 'link',
},
],
themeSwitch: {},
};