-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrspress.config.ts
More file actions
55 lines (53 loc) · 1.49 KB
/
rspress.config.ts
File metadata and controls
55 lines (53 loc) · 1.49 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
import fs from "node:fs";
import path from "node:path";
import { pluginSass } from "@rsbuild/plugin-sass";
import { defineConfig } from "@rspress/core";
import pluginSitemap from "rspress-plugin-sitemap";
const siteUrl = "https://NSRingo.github.io";
export default defineConfig({
root: path.join(__dirname, "docs"),
title: "iRingo",
logoText: "iRingo",
description: "解锁完整的 Apple 功能和集成服务",
icon: "/NSRingoMasked/NSRingoMasked64x.png",
logo: {
light: "/NSRingoMasked/NSRingoMasked@256x.png",
dark: "/NSRingoMasked/NSRingoMasked@256x.png",
},
head: [
["link", { ref: "preconnect", href: "//ipolyfill.edge-byted.com" }],
["link", { ref: "dns-prefetch", href: "//ipolyfill.edge-byted.com" }],
["script", { src: "//ipolyfill.edge-byted.com/0.0.25/polyfill.min.js", crossorigin: "" }],
],
themeConfig: {
socialLinks: [
{ icon: "github", mode: "link", content: "https://github.com/NSRingo" },
{
icon: {
svg: fs.readFileSync(path.join(__dirname, "docs", "public", "telegram.svg"), "utf-8"),
},
mode: "link",
content: "https://t.me/GetSomeFries",
},
],
},
builderConfig: {
resolve: {
alias: {
"rspress/theme": "@rspress/core/theme",
},
},
plugins: [pluginSass()],
},
markdown: {
remarkPlugins: [[require("remark-github")]],
link: {
checkDeadLinks: false,
},
},
plugins: [
pluginSitemap({
domain: siteUrl,
}),
],
});