forked from alibaba/x-render
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.umirc.js
97 lines (95 loc) · 2.37 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
import { defineConfig } from 'dumi';
import MonacoWebpackPlugin from 'monaco-editor-webpack-plugin';
export default defineConfig({
title: 'XRender',
favicon: 'https://img.alicdn.com/tfs/TB17UtINiLaK1RjSZFxXXamPFXa-606-643.png',
logo: 'https://img.alicdn.com/tfs/TB17UtINiLaK1RjSZFxXXamPFXa-606-643.png',
outputPath: 'docs-dist',
hash: false,
dynamicImport: {
loading: '@/docs/Loading.js',
},
locales: [['zh-CN', '中文']],
ignoreMomentLocale: false,
navs: [
{
title: 'FormRender',
path: '/form-render',
},
{
title: 'TableRender',
path: '/table-render',
},
{
title: 'ChartRender',
path: '/chart-render',
},
{ title: '表单设计器', path: '/generator' },
{
title: 'Playground',
path: '/playground',
},
{
title: '周边工具',
path: '/tools',
children: [
{ title: 'PropToSchema', path: '/tools/proptypes' },
{ title: 'VSCode 插件', path: '/tools/vscode' },
{
title: '旧版文档',
path: 'https://x-components.gitee.io/form-render/',
},
],
},
{
title: '更新日志',
children: [
{
title: 'FormRender',
path:
'https://github.com/alibaba/form-render/blob/master/packages/form-render/CHANGELOG.md',
},
{
title: 'TableRender',
path:
'https://github.com/alibaba/form-render/blob/master/packages/table-render/CHANGELOG.md',
},
{
title: 'ChartRender',
path:
'https://github.com/alibaba/form-render/blob/master/packages/chart-render/CHANGELOG.md',
},
],
},
{ title: 'GitHub', path: 'https://github.com/alibaba/form-render' },
],
mode: 'site',
esbuild: {},
// base: '/x-render/',
// publicPath: '/x-render/',
exportStatic: {},
extraBabelPlugins: [
[
'import',
{
libraryName: 'antd',
libraryDirectory: 'lib',
style: true,
},
'antd',
],
[
'import',
{
libraryName: '@alifd/next',
libraryDirectory: 'lib',
},
'@alifd/next',
],
],
chainWebpack(config, { webpack }) {
config.plugin('monaco-editor').use(MonacoWebpackPlugin);
},
plugins:[require.resolve('./scripts/dumi-plugin/redirect')]
// more config: https://d.umijs.org/config
});