-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathantm.config.ts
100 lines (97 loc) · 2.05 KB
/
antm.config.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
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
import { join } from 'path'
import { IDocMenuNavs, defineConfig } from '@antmjs/types'
const CWD = process.cwd()
export default defineConfig({
warning: {
monitorFiles: ['./package.json'],
webhooks: {
url: `https://oapi.dingtalk.com/robot/send?access_token=${require('./.webhooks.js')}`,
},
},
docs: {
title: 'antd Max',
buildPort: 7972,
src: [join(CWD, './src'), join(CWD, './docs')],
globalStyles: [
join(process.cwd(), './config/doc.less'),
join(process.cwd(), './config/style.less'),
],
logo: 'https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg',
route: {
level: 1,
},
headerLinks: [
{
title: 'https://b.yzcdn.cn/vant/logo/github.svg',
url: 'https://github.com/AntmJS/antd-max/',
type: 'img',
},
{
title: '更多',
type: 'select',
options: [
{
title: 'antmjs Doc',
url: 'https://antmjs.github.io/antm/antm-doc/',
},
{
title: 'antmjs Vantui',
url: 'https://antmjs.github.io/vantui',
},
],
},
],
menu: getMenus(),
//@ts-ignore
demoCode: {
container: {
react: join(CWD, '/config/container.tsx'),
},
dir: 'example',
},
},
})
function getMenus(): IDocMenuNavs {
return [
{
name: '指南',
items: [
{
path: 'introduce',
title: '介绍',
},
],
},
{
name: '通用组件',
items: [
{
path: 'button-async',
title: 'button-async 异步按钮',
},
{
path: 'infinite-scroll',
title: 'infinite-scroll 无限滚动',
},
],
},
{
name: '数据录入',
items: [
{
path: 'form-box',
title: 'form-box 表单盒子',
},
],
},
{
name: '业务组件',
items: [
{
path: 'sku',
title: 'sku 商品选择',
},
],
},
]
}