-
Notifications
You must be signed in to change notification settings - Fork 0
/
rspress.config.ts
55 lines (54 loc) · 1.23 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 "node:path";
import { defineConfig } from "rspress/config";
export default defineConfig({
// lang: 'zh',
base: "/",
root: path.join(__dirname, "docs"),
title: "YY F2C - Figma & AI相结合生成开发代码的一站式解决方案",
description: "figma code react vue arks html css",
icon: "/rspress-icon.png",
lang: "zh",
logo: {
light: "/rspress-light-logo.png",
dark: "/rspress-dark-logo.png",
},
globalStyles: path.join(__dirname, "theme", "index.scss"),
markdown: {
checkDeadLinks: true,
},
themeConfig: {
socialLinks: [
{
icon: "github",
mode: "link",
content: "https://github.com/yylive/F2C",
},
],
locales: [
{
lang: "en",
label: "English",
title: "emp",
description: "The Rspack-based build tool for the web",
},
{
lang: "zh",
label: "简体中文",
title: "emp",
outlineTitle: "目录",
prevPageText: "上一页",
nextPageText: "下一页",
description: "基于Rust生态打造的高性能前端构建系统",
},
],
},
builderConfig: {
source: {
alias: {
"@components": path.join(__dirname, "theme/components"),
"@en": path.join(__dirname, "docs/en"),
"@zh": path.join(__dirname, "docs/zh"),
},
},
},
});