-
Notifications
You must be signed in to change notification settings - Fork 77
/
Copy path.umirc.ts
86 lines (85 loc) · 1.94 KB
/
.umirc.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
import { defineConfig } from 'dumi';
export default defineConfig({
title: 'Homebrew 中文网',
mode: 'site',
logo: '/images/homebrew-256x256.png',
define: {
'AVALON_SERVER': process.env.NODE_ENV === 'production' ? 'https://api.idayer.com' : 'http://localhost:8000',
},
favicon: '/favicon.ico',
locales: [['zh-CN', '中文']],
metas: [],
navs: [
null,
{ title: 'GitHub', path: 'https://github.com/ineo6/homebrew-install' },
{ title: 'GitMaster', path: 'https://github.com/ineo6/git-master' },
{ title: '我的博客', path: 'https://idayer.com' },
],
menus: {
'/guide': [
{
title: '介 绍',
children: ['/guide/index', '/guide/how-it-works', '/guide/start'],
},
{
title: '相 关',
children: ['/guide/github'],
},
{
title: '工 具',
children: ['/guide/change-source'],
},
{
title: 'M1芯片',
path: '/guide/m1/',
},
{
title: 'FAQ',
path: '/guide/faq/',
},
],
'/install': [
{
title: '快系列-你快了吗',
children: ['/install/stable-diffusion-webui', '/install/nvm-for-nodejs', '/install/game-porting-toolkit'],
}
],
'/app': [
{
title: 'App',
children: ['/app/homebrew'],
},
{
title: 'Detail',
children: ['/app/detail'],
}
],
},
extraBabelPlugins: [
[
'import',
{
libraryName: 'antd',
libraryDirectory: 'es',
style: 'css',
},
],
],
analytics: {
ga: 'G-QHRH8YZXHT',
baidu: 'be934bce3f81621badc0bb5b581ab622',
},
sitemap: {
hostname: 'https://brew.idayer.com',
},
ssr: {
// 更多配置
// forceInitial: false,
// removeWindowInitialProps: false
// devServerRender: true,
// mode: 'string',
// staticMarkup: false,
},
exportStatic: {},
// more config: https://d.umijs.org/config
});