-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrspress.config.ts
81 lines (79 loc) · 2.09 KB
/
rspress.config.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
import path from 'node:path'
import { defineConfig } from 'rspress/config'
export default defineConfig({
root: path.join(__dirname, 'docs'),
globalStyles: path.join(__dirname, 'styles/index.css'),
icon: '/dolphin-admin.png',
logo: '/dolphin-admin.png',
lang: 'en',
themeConfig: {
locales: [
{
lang: 'en',
label: 'English',
title: 'Dolphin Admin',
description:
'Bring the best dev practices, Open-Source & light-weight admin system built with the newest tech stacks.',
outlineTitle: 'Outline',
lastUpdated: true,
lastUpdatedText: 'Last Updated',
prevPageText: 'Previous',
nextPageText: 'Next',
editLink: {
docRepoBaseUrl: 'https://github.com/bit-ocean-studio/dolphin-admin-core/tree/main/docs',
text: '📝 Edit this page on GitHub'
}
},
{
lang: 'zh',
label: '简体中文',
title: 'Dolphin Admin',
description: '基于最新技术栈、最佳实践的轻量级开源后台管理系统,开箱即用。',
outlineTitle: '目录',
lastUpdated: true,
lastUpdatedText: '上次更新',
prevPageText: '上一篇',
nextPageText: '下一篇',
editLink: {
docRepoBaseUrl: 'https://github.com/bit-ocean-studio/dolphin-admin-core/tree/main/docs',
text: '📝 在 GitHub 上编辑此页'
}
}
],
footer: {
message: 'Made with ❤️ by Bruce Song from Bit Ocean'
},
hideNavbar: 'auto',
enableContentAnimation: true,
socialLinks: [
{
icon: 'github',
mode: 'link',
content: 'https://github.com/bit-ocean-studio/dolphin-admin-core'
},
{
icon: 'discord',
mode: 'link',
content: 'https://discord.gg/NfPAGuz7Em'
}
]
},
markdown: {
// checkDeadLinks: true,
showLineNumbers: true,
highlightLanguages: [
'js',
'jsx',
'ts',
'tsx',
'json',
'css',
'scss',
'bash',
'md',
'mdx',
'toml',
'diff'
]
}
})