-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.umirc.ts
59 lines (58 loc) · 1.61 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
/**
* 文档的配置文件,也可以在 .umi/dumi/config.json中配置
*/
import { defineConfig } from 'dumi';
export default defineConfig({
title: 'cime', // 网站标题名
// 网站标题旁边图片
favicon:
'https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png',
// 页面上展示的logo的图片
logo: 'https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png',
// 打包发布上线的 文件包名字
outputPath: 'docs-dist',
// 配置导航条模式 // 默认纵向,
mode: 'site',
apiParser: {
// 自定义属性过滤配置,也可以是一个函数,用法参考:https://github.com/styleguidist/react-docgen-typescript/#propfilter
propFilter: {
// 是否忽略从 node_modules 继承的属性,默认值为 false
skipNodeModules: true,
// 需要忽略的属性名列表,默认为空数组
skipPropsWithName: ['autoFocus', 'form', 'formAction', 'formEncType', 'title'],
// 是否忽略没有文档说明的属性,默认值为 false
skipPropsWithoutDoc: false,
},
},
history: {
type: 'hash',
},
navs: [
// null, // 保留默认配置
{
title: '指南',
path: '/guide',
},
{
title: '组件',
path: '/component',
},
{
title: '作者',
children: [
{
title: 'CSDN',
path: '',
},
{
title: '掘金',
path: '',
},
],
},
{
title: 'GitHub',
path: 'https://github.com/yq979292/cimi-react',
},
],
});