forked from alibaba/x-render
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.umirc.js
120 lines (119 loc) · 3.51 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
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: true,
dynamicImport: {
loading: '@/docs/Loading.js',
},
locales: [['zh-CN', '中文']],
hire: {
title: '飞猪用户技术正寻觅前端',
content: `
<p><strong>招聘团队:</strong>飞猪用户技术(拔赤)- 前端组</p>
<p><strong>招聘层级:</strong>P5 ~ P7</p>
<p><strong>工作城市:</strong>杭州、北京</p>
<p><strong>面试效率:</strong>加急面试</p>
<p><strong>团队链接:</strong></p>
<ul>
<li>微信:<a href="https://weixin.sogou.com/weixin?query=Fliggy+F2E" target="_blank">Fliggy F2E</a></li>
<li>掘金:<a href="https://juejin.cn/user/3051900006845944" target="_blank">飞猪前端团队</a></li>
<li>开源:<a href="https://github.com/alibaba/form-render/" target="_blank">alibaba/x-render</a></li>
<li>开源:<a href="https://github.com/apache/incubator-weex-ui" target="_blank">apache/weex-ui</a></li>
<li>开源:<a href="https://github.com/fliggy-mobile" target="_blank">fliggy-mobile</a></li>
</ul>`,
email: 'tw102972@alibaba-inc.com',
slogan: '想快乐的写前端吗?',
},
ignoreMomentLocale: false,
navs: [
{
title: 'FormRender',
path: '/form-render',
},
{
title: 'TableRender',
path: '/table-render',
},
{
title: 'ChartRender',
path: '/chart-render',
},
{
title: 'Playground',
children: [
{ title: 'Playground', path: '/playground' },
{ title: 'Schema 编辑器', path: '/tools/generator/playground' },
],
path: '/playground',
},
{
title: '周边工具',
path: '/tools',
children: [
{ title: 'Schema 编辑器', path: '/tools/generator' },
{ title: 'PropToSchema', path: '/tools/proptypes' },
{ title: 'VSCode 插件', path: '/tools/vscode' },
],
},
{
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: '旧版文档',
path: 'https://x-components.gitee.io/form-render/',
},
{ title: 'GitHub', path: 'https://github.com/alibaba/form-render' },
],
mode: 'site',
// alias: {
// 'form-render/dist': path.resolve(__dirname, 'packages/form-render/dist'),
// },
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);
},
// more config: https://d.umijs.org/config
});