-
Notifications
You must be signed in to change notification settings - Fork 0
/
.dumirc.ts
42 lines (37 loc) · 1.05 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
import { defineConfig } from 'dumi';
import { baseTheme, defineThemeConfig } from 'dumi-theme-chakra';
function withGH(uri: string): string {
const prefix = process.env.gh ? '/RyanDocs/' : '/';
return [prefix, uri].join('');
}
export default defineConfig({
base: withGH(''),
publicPath: withGH(''),
// locales: [
// { id: 'zh-CN', name: '中文' },
// { id: 'en-US', name: 'English' },
// ],
themeConfig: {
name: 'RyanDocs',
logo: withGH('logo.png'),
...defineThemeConfig({
brand: baseTheme.colors.twitter,
helmetIcon: '🍺',
// settingPanelVisible: true,
thumbBackground: true,
author: 'RyanCW',
social: {
github: {
name: 'RyanCW',
link: 'https://github.com/Ryan-CW-Code',
},
},
announcementBar: {
id: 'announce current progress info',
content: '欢迎光临,这是一条横幅我还没想好写什么😎',
isCloseable: true,
},
}),
footer: `Copyright © ${new Date().getFullYear()} Ryan`,
},
});