-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrspress.config.ts
37 lines (36 loc) · 939 Bytes
/
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
import * as path from 'path';
import { defineConfig } from 'rspress/config';
export default defineConfig({
lang: 'zh',
base: '/rspress-template/',
root: path.join(__dirname, 'docs'),
title: 'Rspress',
description: 'Rspack-based Static Site Generator',
icon: "https://lexmin0412.github.io/rspress-template/rspress-icon.png",
logo: {
light: "https://lexmin0412.github.io/rspress-template/rspress-light-logo.png",
dark: "https://lexmin0412.github.io/rspress-template/rspress-dark-logo.png",
},
themeConfig: {
locales: [
{
lang: 'en',
label: 'English',
outlineTitle: 'On This Page',
},
{
lang: 'zh',
label: '简体中文',
outlineTitle: '大纲',
},
],
socialLinks: [
{ icon: 'github', mode: 'link', content: 'https://github.com/web-infra-dev/rspress' },
],
},
builderConfig: {
output: {
assetPrefix: 'https://lexmin0412.github.io/rspress-template/'
}
},
});