-
Notifications
You must be signed in to change notification settings - Fork 0
/
.dumirc.ts
34 lines (32 loc) · 840 Bytes
/
.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
import { defineConfig } from 'dumi';
import type { SiteThemeConfig } from 'dumi-theme-antd-style';
import { repository, name } from './package.json';
const themeConfig: SiteThemeConfig = {
socialLinks: { github: repository },
apiHeader: {
pkg: name,
sourceUrl: `{github}/tree/master/src/components/{atomId}/index.tsx`,
docUrl: `{github}/tree/master/example/docs/components/{atomId}.{locale}.md`,
match: ['/docs', '/zh-CN/docs'],
},
footer: 'iscorrect',
footerConfig: {
columns: [],
},
};
export default defineConfig({
outputPath: 'docs-dist',
themeConfig: {
name: 'iscorrect',
logo: '/favicon.svg',
...themeConfig,
},
locales: [
{ id: 'en-US', name: 'English' },
{ id: 'zh-CN', name: '中文' },
],
mako: {},
sitemap: {
hostname: 'https://iscorrect.jsdev.top'
}
});