-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrspress.config.ts
55 lines (54 loc) · 1.19 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";
export default defineConfig({
root: path.join(__dirname, "docs"),
lang: "zh",
title: "Bio-OS",
description:
"A low-threshold, cost-effective, high-speed cloud-based bioinformatics analysis service based on Serverless architecture.",
icon: "/bioos-logo.svg",
logo: {
light: "/bioos-light-logo.png",
dark: "/bioos-dark-logo.png",
},
locales: [
// {
// lang: "en",
// // 导航栏切换语言的标签
// label: "English",
// },
{
lang: "zh",
// 导航栏切换语言的标签
label: "简体中文",
},
],
builderConfig: {
tools: {
sass: {
sourceMap: true,
},
},
html: {
tags: [
{
tag: 'script',
// 通过 window.RSPRESS_THEME 变量来指定默认的主题模式,可选值为 'dark' 和 'light'
children: "window.RSPRESS_THEME = 'light';",
},
],
},
},
themeConfig: {
footer: {
message: "Bio-OS",
},
socialLinks: [
{
icon: "github",
mode: "link",
content: "https://github.com/Bio-OS/bioos",
},
],
},
});