-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy path.dumirc.ts
40 lines (38 loc) · 1.21 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
import { defineConfig } from 'dumi'
import { join } from 'path';
const logo = 'https://cdn.jsdelivr.net/gh/wangxingkang/pictures@latest/imgs/amap-logo.svg';
export default defineConfig({
favicons: [
logo,
],
themeConfig: {
logo,
name: 'AMap',
socialLinks: {
github: 'https://github.com/pansyjs/react-amap',
},
nav: [
{ title: '文档', link: '/docs' },
{ title: '组件', link: '/components' },
{ title: '示例', link: '/examples' },
],
},
alias: {
// '@pansy/react-amap': join(__dirname, 'packages/amap/src'),
// '@pansy/react-amap/es': join(__dirname, 'packages/amap/src'),
// '@pansy/react-amap-ui': join(__dirname, 'packages/amap-ui/src'),
// '@pansy/react-amap-loca': join(__dirname, 'packages/amap-loca/src'),
// '@pansy/react-amap-core': join(__dirname, 'packages/core/src'),
// '@pansy/amap-api-loader': join(__dirname, 'packages/api-loader/src'),
},
resolve: {
docDirs: ['docs'],
atomDirs: [
{ type: 'component', dir: 'packages/amap/src' },
{ type: 'component', dir: 'packages/amap-ui/src' },
{ type: 'component', dir: 'packages/amap-loca/src' }
],
codeBlockMode: 'passive',
},
hash: true,
});