-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.dumirc.ts
97 lines (92 loc) · 2.57 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
import { defineConfig } from 'dumi';
import sidebar from './sidebar';
// const { defaultAlgorithm, defaultSeed } = theme;
// const mapToken = defaultAlgorithm(defaultSeed);
// https://llq0802.github.io
const isDev = process.env.NODE_ENV === 'development';
const version = 'latest';
export const publicPath = !isDev ? `/lighting-design/${version}/` : '/';
const logo = `${publicPath}logo.png`;
const favicons = [`${publicPath}logo.png`];
// const outputPath = `docs-dist/${version}`;
const outputPath = version;
export default defineConfig({
publicPath,
base: publicPath,
themeConfig: {
lastUpdated: false,
name: 'Lighting Design',
logo,
footer: 'Open-source MIT Licensed | Copyright © 2020-present Powered by llq0802',
socialLinks: {
github: 'https://github.com/llq0802/lighting-design/tree/v2',
},
rtl: true,
nav: [
{ title: '指南', link: '/guide' },
{ title: '组件', link: '/components' },
{ title: '更多场景', link: '/scene' },
{ title: 'rc-use-hooks', link: 'https://llq0802.github.io/rc-use-hook/' },
{ title: 'V1.x', link: 'https://llq0802.github.io/lighting-design/v1/' },
{
title: 'GitHub',
link: 'https://github.com/llq0802/lighting-design/tree/v2',
},
{
title: '*更新日志 - V2.1.35',
link: 'https://github.com/llq0802/lighting-design/releases',
},
],
sidebar,
},
metas: [
{
name: 'keywords',
content: 'Lighting-Design, lighting-design, lightd, antd, react组件库',
},
{
name: 'description',
content: '🍙 让中后台开发更简单',
},
],
// lessLoader: {
// modifyVars: mapToken,
// },
outputPath,
favicons,
styles: [
`
.dumi-default-sidebar {
min-width: 260px;
}
.dumi-default-previewer-demo {
min-height: 60px;
display: flex;
overflow: auto;
flex-direction: column;
justify-content: center;
}
.dumi-default-content-tabs{
margin: -24px -48px 48px !important;
}
.dumi-default-header:not([data-static]){
border-bottom: 1px solid #ddd;
}
.dumi-default-header-left {
min-width: 230px;
margin-right: 32px;
}
.dumi-default-header-left .dumi-default-logo{
color: #5581a6
}
.dumi-default-header .dumi-default-header-content{
max-width: initial;
padding:0 50px;
}
#root .dumi-default-doc-layout > main{
max-width: initial;
padding:0 50px;
}
`,
],
});