-
Notifications
You must be signed in to change notification settings - Fork 2
/
.dumirc.ts
54 lines (51 loc) · 1.71 KB
/
.dumirc.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
import { defineConfig } from 'dumi'
import sass from 'sass'
import path from 'path'
const globalStyles = sass.compile('./examples/global.scss')
export default defineConfig({
outputPath: 'docs-dist',
resolve: {
docDirs: ['examples'],
},
styles: [globalStyles.css],
themeConfig: {
name: 'SchemaRender',
logo: false,
nav: [
{ title: '💎 Core', link: '/core-react/001-intro' },
{ title: '🚀 FormRender', link: '/form-render-react/001-intro' },
{ title: '⛵️ Search', link: '/search-react/001-intro' },
{ title: '🛳 SearchTable', link: '/search-table-react/001-intro' },
],
socialLinks: {
github: 'https://github.com/Barrior/schema-render',
},
rtl: true,
footer: false,
},
favicons: [
// 指向 public/favicon.png
'/favicon.png',
],
alias: {
// 根据精确程度按顺序声明
'@schema-render/core-react/dist/esm': path.resolve('packages/core-react/src'),
'@schema-render/form-render-react/dist/esm': path.resolve(
'packages/form-render-react/src'
),
'@schema-render/search-react/dist/esm': path.resolve('packages/search-react/src'),
'@schema-render/search-table-react/dist/esm': path.resolve(
'packages/search-table-react/src'
),
'@examples': path.resolve('examples'),
'@schema-render/core-react': path.resolve('packages/core-react/src'),
'@schema-render/form-render-react': path.resolve('packages/form-render-react/src'),
'@schema-render/search-react': path.resolve('packages/search-react/src'),
'@schema-render/search-table-react': path.resolve('packages/search-table-react/src'),
},
mfsu: false,
analytics: {
// 百度统计
baidu: 'c5249e1a7532f134490322a9c0c82945',
},
})