forked from 15051107253/ra-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.umirc.ts
63 lines (62 loc) · 1.55 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
import { defineConfig } from 'dumi';
import { resolve } from 'path';
export default defineConfig({
title: 'ra-lib',
favicon:
'https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png',
logo:
'https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png',
outputPath: 'docs',
mode: 'site',
resolve: {
includes: [
'docs-src',
'packages',
],
},
base: '/ra-lib',
publicPath: '/ra-lib/',
locales: [ [ 'zh-CN', '中文' ] ],
navs: {
'zh-CN': [
{
title: '组件',
path: '/components',
},
{
title: 'Hooks',
path: '/hooks',
},
{
title: 'Ajax',
path: '/ajax',
},
{
title: 'Model',
path: '/model',
},
{
title: 'Github',
path: 'https://github.com/zkboys/ra-lib',
},
],
'en-US': [
{
title: 'Github',
path: 'https://github.com/zkboys/ra-lib',
},
],
},
// more config: https://d.umijs.org/config
extraBabelPlugins: [
[
'babel-plugin-import',
{
libraryName: 'antd',
libraryDirectory: 'es',
style: true,
},
'antd',
],
],
});