-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrspress.config.ts
61 lines (60 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
56
57
58
59
60
61
import { join } from "node:path";
import { defineConfig } from "rspress/config";
export default defineConfig({
root: join(__dirname, "docs"),
title: "EcoPaste",
description: "Cross-platform clipboard management tool",
icon: "/icon.png",
logo: {
light: "/light-logo.png",
dark: "/dark-logo.png",
},
themeConfig: {
enableContentAnimation: true,
enableAppearanceAnimation: true,
lastUpdated: true,
searchPlaceholderText: "搜索",
searchNoResultsText: "未搜索到相关结果",
searchSuggestedQueryText: "可更换不同的关键字后重试",
lastUpdatedText: "最后更新时间",
prevPageText: "上一篇",
nextPageText: "下一篇",
outlineTitle: "页面导航",
socialLinks: [
{
icon: "github",
mode: "link",
content: "https://github.com/EcoPasteHub/EcoPaste",
},
],
editLink: {
docRepoBaseUrl:
"https://github.com/EcoPasteHub/EcoPaste-Docs/tree/master/docs",
text: "📝 在 GitHub 上编辑此页",
},
},
markdown: {
mdxRs: false,
globalComponents: [
join(__dirname, "src", "components", "Image"),
join(__dirname, "src", "components", "Link"),
join(__dirname, "src", "components", "Download"),
],
},
globalStyles: join(__dirname, "src", "styles", "index.scss"),
builderConfig: {
html: {
tags: [
{
tag: "script",
attrs: {
src: "//at.alicdn.com/t/c/font_4731968_o5lkwrsdztk.js",
},
},
],
},
},
route: {
cleanUrls: true,
},
});