-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
rspress.config.ts
44 lines (43 loc) · 1.18 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
import { pluginPreview } from "@rspress/plugin-preview";
import path from "path";
import { defineConfig } from "rspress/config";
import RsBuildConfig from "./rsbuild.config";
import { pluginFixCss } from "./scripts/fixcss";
export default defineConfig({
// base: "/pro.formily/antd/",
root: path.join(__dirname, "docs"),
// outDir: "./doc_build/antd/",
title: "Pro Formily",
description: "Pro Formily, 启动!",
icon: "/rspress-icon.png",
logo: {
light: "/rspress-light-logo.png",
dark: "/rspress-dark-logo.png",
},
mediumZoom: {
selector: ".rspress-doc .img",
},
globalStyles: path.join(__dirname, "./docs/style.css"),
builderConfig: {
...(RsBuildConfig as any),
},
plugins: [pluginPreview(), pluginFixCss()],
themeConfig: {
enableContentAnimation: true,
lastUpdated: true,
outlineTitle: "目录",
lastUpdatedText: "最近更新",
prevPageText: "上一节",
nextPageText: "下一节",
footer: {
message: "Powered by RsPress. © 2024 charlzyx All Rights Reserved.",
},
socialLinks: [
{
icon: "github",
mode: "link",
content: "https://github.com/charlzyx/pro.formily",
},
],
},
});