-
Notifications
You must be signed in to change notification settings - Fork 0
/
rspress.config.ts
55 lines (53 loc) · 1.53 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
import * as path from "path";
import { defineConfig } from "rspress/config";
import remarkObsidian from "remark-obsidian";
import rehypeRaw from "rehype-raw";
import { pluginOpenGraph } from "rsbuild-plugin-open-graph";
import { pluginGoogleAnalytics } from "rsbuild-plugin-google-analytics";
import { pluginFontPretendard } from "./plugins/rspress-plugin-font-pretendard";
const mdxNodeTypes = /** @type {const} */ [
"mdxFlowExpression",
"mdxJsxFlowElement",
"mdxJsxTextElement",
"mdxTextExpression",
"mdxjsEsm",
];
export default defineConfig({
root: path.join(__dirname, "docs"),
title: "Harim",
description: "개발과 라이프를 담은 공간",
icon: "/favicon.png",
logo: {
light: "/light-logo.png",
dark: "/dark-logo.png",
},
globalStyles: path.join(__dirname, "styles/index.css"),
themeConfig: {
socialLinks: [
{ icon: "github", mode: "link", content: "https://github.com/iicdii" },
],
searchPlaceholderText: "검색",
outlineTitle: "목차",
},
route: {
cleanUrls: true,
},
markdown: {
mdxRs: false,
remarkPlugins: [remarkObsidian],
rehypePlugins: [[rehypeRaw, { passThrough: mdxNodeTypes }]],
},
plugins: [pluginFontPretendard()],
builderPlugins: [
pluginOpenGraph({
type: "website",
url: "https://harimkim.netlify.app/",
image: "https://harimkim.netlify.app/blog_meta_image.png",
description: "개발과 라이프를 담은 공간",
locale: "ko_KR",
}),
pluginGoogleAnalytics({
id: "G-2ZTM2LL0DD",
}),
],
});