-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
.umirc.js
82 lines (82 loc) · 2.02 KB
/
.umirc.js
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
import { resolve } from 'path'
export default {
mode: 'site',
logo: '//img.alicdn.com/imgextra/i2/O1CN01Kq3OHU1fph6LGqjIz_!!6000000004056-55-tps-1141-150.svg',
title: 'Formily',
hash: true,
favicon:
'//img.alicdn.com/imgextra/i3/O1CN01XtT3Tv1Wd1b5hNVKy_!!6000000002810-55-tps-360-360.svg',
outputPath: './doc-site',
locales: [
['en-US', 'English'],
['zh-CN', '中文'],
],
navs: {
'zh-CN': [
{
title: 'Ant Design Mobile',
path: '/zh-CN/components',
},
{
title: '主站',
path: 'https://formilyjs.org',
},
{
title: 'GITHUB',
path: 'https://github.com/alibaba/formily',
},
],
'en-US': [
{
title: 'Ant Design Mobile',
path: '/components',
},
{
title: 'Home Site',
path: 'https://formilyjs.org',
},
{
title: 'GITHUB',
path: 'https://github.com/alibaba/formily',
},
],
},
links: [
{
rel: 'stylesheet',
href: 'https://unpkg.com/antd-mobile/dist/antd-mobile.css',
},
],
styles: [
`.__dumi-default-navbar-logo{
background-size: 140px!important;
background-position: center left!important;
background-repeat: no-repeat!important;
padding-left: 150px!important; /*可根据title的宽度调整*/
font-size: 22px!important;
color: #000!important;
font-weight: lighter!important;
}
.__dumi-default-navbar{
padding: 0 28px !important;
}
.__dumi-default-layout-hero{
background-image: url(//img.alicdn.com/imgextra/i4/O1CN01ZcvS4e26XMsdsCkf9_!!6000000007671-2-tps-6001-4001.png);
background-size: cover;
background-repeat: no-repeat;
padding: 120px 0 !important;
}
.__dumi-default-layout-hero h1{
color:#45124e !important;
font-size:80px !important;
padding-bottom: 30px !important;
}
.__dumi-default-dark-switch {
display:none
}
nav a{
text-decoration: none !important;
}
`,
],
}