-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathrspress.config.ts
143 lines (142 loc) · 3.64 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
import * as path from "path";
import { defineConfig } from "rspress/config";
import pluginSitemap from "rspress-plugin-sitemap";
import katex from "rspress-plugin-katex";
export default defineConfig({
root: path.join(__dirname, "docs"),
title: "GZ::CTF",
lang: "en",
description: "GZ::CTF Project Documentation",
icon: "/favicon.webp",
plugins: [
katex(),
pluginSitemap({
domain: "https://gzctf.gzti.me",
}),
],
markdown: {
checkDeadLinks: true,
highlightLanguages: [
["js", "javascript"],
["ts", "typescript"],
["jsx", "tsx"],
["xml", "xml-doc"],
["md", "markdown"],
["mdx", "tsx"],
["yml", "yaml"],
["py", "python"],
["sh", "bash"],
["json", "json"],
["txt", "plaintext"],
],
},
ssg: {
strict: true,
},
locales: [
{
lang: "en",
label: "English",
description: "Docs for GZ::CTF Project",
},
{
lang: "zh",
label: "简体中文",
description: "GZ::CTF 使用文档",
},
{
lang: "ja",
label: "日本語",
description: "GZ::CTF プロジェクトのドキュメント",
},
],
themeConfig: {
socialLinks: [
{
icon: "github",
mode: "link",
content: "https://github.com/GZTimeWalker/GZCTF",
},
{
icon: "discord",
mode: "link",
content: "https://discord.gg/dV9A6ZjVhC",
},
],
lastUpdated: true,
enableScrollToTop: true,
enableContentAnimation: true,
enableAppearanceAnimation: false,
footer: {
message: "© 2022 - present By GZTimeWalker. All Rights Reserved.",
},
hideNavbar: "auto",
locales: [
{
lang: "en",
label: "English",
outlineTitle: "Table of Contents",
prevPageText: "Previous",
nextPageText: "Next",
lastUpdatedText: "Last Updated",
searchPlaceholderText: "Search Docs",
searchNoResultsText: "No results for",
searchSuggestedQueryText: "Please try again with a different keyword",
editLink: {
text: "Edit this page on GitHub",
docRepoBaseUrl: "https://github.com/GZCTF/website/tree/main/docs",
},
},
{
lang: "zh",
label: "简体中文",
outlineTitle: "目录",
prevPageText: "上一页",
nextPageText: "下一页",
lastUpdatedText: "最后更新于",
searchPlaceholderText: "搜索文档",
searchNoResultsText: "没有找到有关内容",
searchSuggestedQueryText: "建议更换不同的关键字后重试",
editLink: {
text: "在 GitHub 上编辑此页",
docRepoBaseUrl: "https://github.com/GZCTF/website/tree/main/docs",
},
},
{
lang: "ja",
label: "日本語",
outlineTitle: "目次",
prevPageText: "前へ",
nextPageText: "次へ",
lastUpdatedText: "最終更新",
searchPlaceholderText: "ドキュメントを検索",
searchNoResultsText: "関連する結果がありません",
editLink: {
text: "GitHub でこのページを編集",
docRepoBaseUrl: "https://github.com/GZCTF/website/tree/main/docs",
},
},
],
},
builderConfig: {
html: {
tags: [
{
tag: "meta",
attrs: {
property: "og:image",
content: "/favicon.webp",
},
},
{
tag: "meta",
attrs: {
name: "keywords",
content:
"GZ::CTF, CTF, GZTimeWalker, GZCTF, GZCTF Docs, GZCTF Project",
},
},
],
},
},
});