-
Notifications
You must be signed in to change notification settings - Fork 3
/
.dumirc.ts
48 lines (46 loc) · 1.25 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
import { defineConfig } from 'dumi';
import path from 'path';
const repo = 'react-form-simple';
export default defineConfig({
outputPath: 'docs-dist',
base: process.env.NODE_ENV === 'production' ? `/${repo}/` : '/',
publicPath: process.env.NODE_ENV === 'production' ? `/${repo}/` : '/',
resolve: {
docDirs: ['docs'],
},
themeConfig: {
name: 'React-form-simple',
logo: '/logo.png',
footer: true,
// lastUpdated: false,
socialLinks: {
github: 'https://github.com/easy-form/react-form-simple',
},
prefersColor: { default: 'auto', switch: true },
disabledPreviewCodeActions: [
'CSB',
'STACKBLITZ',
'HTML2SKETCH',
'EXTERNAL',
'EXPANDBTN',
],
collpaseCode: true,
onlyShowToc: false,
},
alias: {
'react-form-simple': path.resolve(__dirname, './', 'src'),
'@components': path.resolve(__dirname, './', '.dumi/component'),
useHook: path.resolve(__dirname, './', '.dumi/use'),
useLocalFormat: path.resolve(
__dirname,
'./',
'.dumi/use/useLocalFormat.ts',
),
},
codeSplitting: { jsStrategy: 'granularChunks' },
title: 'react-form-simple',
locales: [
{ id: 'en-US', name: 'English' },
{ id: 'zh-CN', name: '简体中文' },
],
});