forked from Project-Robius-China/makepad-book
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrspress.config.ts
55 lines (54 loc) · 1.56 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
import * as path from 'path';
import { defineConfig } from 'rspress/config';
export default defineConfig({
base: '/makepad-book/',
root: path.join(__dirname, 'docs'),
title: 'Makepad Book',
description: 'A book for makepad, want to quickly and easily to help you use makepad.',
lang: 'zh',
icon: '/favicon.ico',
globalStyles: path.join(__dirname, 'theme', 'index.css'),
logo: {
light: '/logo_makepad.svg',
dark: '/logo_makepad.svg',
},
markdown: {
showLineNumbers: true,
checkDeadLinks: true,
},
route: {
cleanUrls: true,
},
themeConfig: {
enableContentAnimation: true,
socialLinks: [
{ icon: 'github', mode: 'link', content: 'https://github.com/Project-Robius-China/makepad-book' },
],
footer: {
message: '© 2024 Project Robius China (Makepad Book) Maintainers. All Rights Reserved.',
},
locales: [
{
lang: 'zh',
label: '简体中文',
editLink: {
docRepoBaseUrl:
'https://github.com/Project-Robius-China/makepad-book/tree/main/docs/zh',
text: '📝 在 GitHub 上编辑此页',
},
searchNoResultsText: '未搜索到相关结果',
searchPlaceholderText: '搜索文档',
searchSuggestedQueryText: '可更换不同的关键字后重试',
},
{
lang: 'en',
label: 'English',
editLink: {
docRepoBaseUrl:
'https://github.com/Project-Robius-China/makepad-book/tree/main/docs/en',
text: '📝 Edit this page on GitHub',
},
}
]
},
});