Repository navigation
Expand file tree
/
Copy pathrspress.config.ts
More file actions
77 lines (74 loc) · 1.88 KB
/
Copy pathrspress.config.ts
File metadata and controls
77 lines (74 loc) · 1.88 KB
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
import * as path from "node:path";
import { defineConfig, type UserConfig } from "@rspress/core";
// import ghPages from "rspress-plugin-gh-pages";
export const config: UserConfig = {
root: path.join(__dirname, "docs"),
// plugins: [
// ghPages({
// repo: "https://github.com/ScriptingApp/ScriptingApp.github.io.git",
// branch: "v2",
// nojekyll: true,
// }),
// ],
multiVersion: {
default: "App Store",
versions: ["App Store", "TestFlight"],
},
search: {
versioned: true,
codeBlocks: true,
},
// base: "/doc_v2/",
title: "Scripting",
icon: "/icon.png",
logo: "/logo.png",
logoText: "Scripting",
ssg: false,
llms: true,
// Correct the chart links in the current App Store and TestFlight ZIPs.
replaceRules: [
{ search: "[`LineChart`](#折线图)", replace: "[`LineChart`](#折线图linechart)" },
{ search: "[`AreaChart`](#面积图)", replace: "[`AreaChart`](#面积图areachart)" },
{
search: "[`RuleLineForLabelChart`](#标签参考线图)",
replace: "[`RuleLineForLabelChart`](#标签参考线图rulelineforlabelchart)",
},
{
search: "[`RuleLineForLabelChart`](#rulelineforlabelchart)",
replace: "[`RuleLineForLabelChart`](#rulelineforlabelchart-dynamic-annotation)",
},
],
route: {
cleanUrls: true,
},
themeConfig: {
socialLinks: [
{
icon: "github",
mode: "link",
content: "https://github.com/ScriptingApp",
},
{
icon: "X",
mode: "link",
content: "https://x.com/thomfang",
},
],
},
lang: "en",
locales: [
{
lang: "en",
label: "English",
title: "Rspress",
description: "Static Site Generator",
},
{
lang: "zh",
label: "简体中文",
title: "Rspress",
description: "静态网站生成器",
},
],
};
export default defineConfig(config);