-
Notifications
You must be signed in to change notification settings - Fork 113
/
.dumirc.ts
71 lines (70 loc) · 1.73 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import { defineConfig } from 'dumi';
import style from './docs/siteIndexStyle';
import path from 'path';
import { version } from './packages/concis-react/package.json';
export default defineConfig({
favicons: ['https://concis.org.cn/images/concis-logo.png'],
outputPath: 'docs-dist',
history: {
type: 'hash',
},
hash: false,
resolve: {
docDirs: ['docs'],
atomDirs: [
{ type: 'component', dir: '/packages/concis-react/src' },
{ type: 'mobile', dir: '/packages/concis-react-mobile/src' },
],
codeBlockMode: 'passive',
},
define: {
concisVersion: version,
},
alias: {
concis: path.join(__dirname, 'packages/concis-react/src'),
},
locales: [
{ id: 'en-US', name: 'English', suffix: '' },
{ id: 'zh-CN', name: '中文', suffix: 'zh-CN' },
],
themeConfig: {
name: 'Concis',
carrier: 'dumi', // 设备状态栏左侧的文本内容
hd: true,
rtl: true,
logo: 'https://concis.org.cn/images/concis-logo.png',
footer:
'Copyright © 2022-2022 Concis. All Rights Reserved. Concis 版权所有. 苏ICP备2022018060号',
nav: {
'zh-CN': [
{
title: '指南',
link: '/guide/introducezh-CN',
},
{
title: '组件',
link: '/components/buttonzh-CN',
},
{
title: 'GitHub',
link: 'https://github.com/fengxinhhh/Concis',
},
],
'en-US': [
{
title: '指南',
link: '/guide/introduce',
},
{
title: '组件',
link: '/components/button',
},
{
title: 'GitHub',
link: 'https://github.com/fengxinhhh/Concis',
},
],
},
},
styles: [style],
});