-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrspress.config.ts
63 lines (61 loc) · 1.34 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
import * as path from "node:path";
import { defineConfig } from "rspress/config";
import alignImage from "rspress-plugin-align-image";
export default defineConfig({
base:"/GenUI.github.io/",
root: path.join(__dirname, "docs"),
title: "GenUI Book",
description: "A book for GenUI",
icon: "/genui.png",
logo: {
light: "/genui.png",
dark: "/genui.png",
},
lang: "en",
globalStyles: path.join(__dirname, 'theme', 'index.css'),
plugins: [alignImage({
justify: 'center',
containerClassNames: ['img-center'],
})],
themeConfig: {
enableContentAnimation: true,
locales: [
{
lang: "en",
label: "English",
title: "GenUI Book",
description: "A book for GenUI",
outlineTitle: 'Table of Contents',
},
{
lang: "zh",
label: "中文",
title: "GenUI Book",
description: "GenUI 的教程",
outlineTitle: '目录',
},
],
socialLinks: [
{
icon: "github",
mode: "link",
content: "https://github.com/Privoce/GenUI",
},
],
},
markdown: {
showLineNumbers: true,
checkDeadLinks: true,
highlightLanguages:[['rs', 'rust']]
},
route: {
cleanUrls: true,
},
multiVersion: {
default: "v0.1.0",
versions: ["v0.1.0"],
},
search: {
versioned: true,
},
});