-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathrspress.config.ts
101 lines (99 loc) · 2.73 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
import path from "node:path";
import { pluginGoogleAnalytics } from "rsbuild-plugin-google-analytics";
import { pluginOpenGraph } from "rsbuild-plugin-open-graph";
import pluginSitemap from "rspress-plugin-sitemap";
import { defineConfig } from "rspress/config";
export default defineConfig({
root: path.join(__dirname, "docs"),
head: ['<meta name="author" content="Cezar Augusto">'],
title: "Extension.js",
lang: "en",
logo: {
light:
"https://github.com/user-attachments/assets/c51916f5-454b-4502-b171-ab1f26fc2dd2",
dark: "https://github.com/user-attachments/assets/5690527e-1981-43dd-b267-4a7fc3752bc3",
},
icon: "https://github.com/user-attachments/assets/58c169c3-03a5-4088-9bdb-61775917428f",
markdown: {
checkDeadLinks: true,
},
ssg: {
strict: true,
},
globalStyles: path.join(__dirname, "theme", "index.css"),
builderConfig: {
dev: {
lazyCompilation: true,
},
plugins: [
pluginGoogleAnalytics({ id: "G-0TTJ0PEKL2" }),
pluginOpenGraph({
title: "Extension.js",
type: "website",
url: "https://extension.js.org",
image:
"https://github.com/user-attachments/assets/410bc1bc-a2dd-4c89-97e7-dffc18a0d035",
description:
"Extension.js makes it very easy to create, develop, and distribute cross-browser extensions with no build configuration.",
twitter: {
site: "@extensionjs",
card: "summary_large_image",
},
}),
],
source: {
preEntry: ["./theme/tailwind.css"],
alias: {
"@builtIns": path.join(__dirname, "components", "builtIns"),
"@components": path.join(__dirname, "components"),
"@hooks": path.join(__dirname, "hooks"),
},
},
server: {
open: true,
},
},
route: {
cleanUrls: true,
},
themeConfig: {
hideNavbar: "never",
footer: {
message: "MIT (c) 2024 Cezar Augusto and the Extension.js Authors.",
},
socialLinks: [
{
icon: "github",
mode: "link",
content: "https://github.com/extension-js/extension.js",
},
{
icon: "discord",
mode: "link",
content: "https://discord.gg/v9h2RgeTSN",
},
{
icon: "x",
mode: "link",
content: "https://twitter.com/extensionjs",
},
],
locales: [
{
lang: "en",
title: "Extension.js",
label: "English",
editLink: {
docRepoBaseUrl: "https://github.com/extension-js/docs/tree/main/docs",
text: "📝 Edit this page on GitHub",
},
searchPlaceholderText: "Search Documentation",
},
],
},
plugins: [
pluginSitemap({
domain: "https://extension.js.org",
}),
],
});