-
Notifications
You must be signed in to change notification settings - Fork 0
/
rspress.config.ts
51 lines (50 loc) · 1.35 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
import * as path from 'path';
import { defineConfig } from 'rspress/config';
import { pluginShiki } from '@rspress/plugin-shiki';
export default defineConfig({
plugins: [pluginShiki()],
markdown: {
checkDeadLinks: true,
},
// Setup the base directory for the website deployment
base: '/rspress-template/',
root: path.join(__dirname, 'docs'),
title: 'template-site',
lang: 'en',
description: 'Rspack-based Static Site Generator template',
icon: '/rspress-icon.png',
logo: {
light: '/rspress-light-logo.png',
dark: '/rspress-dark-logo.png',
},
builderConfig: {
},
themeConfig: {
socialLinks: [
{ icon: 'github', mode: 'link', content: 'https://github.com/willemJiang/rspress-template/' },
],
locales: [
{
lang: 'zh',
label: '简体中文',
editLink: {
docRepoBaseUrl:
'https://github.com/willemJiang/rspress-template/tree/main/docs',
text: '📝 在 GitHub 上编辑此页',
},
prevPageText: '上一篇',
nextPageText: '下一篇',
outlineTitle: '目录',
},
{
lang: 'en',
label: 'English',
editLink: {
docRepoBaseUrl:
'https://github.com/willemJiang/rspress-template/tree/main/docs',
text: '📝 Edit this page on GitHub',
},
},
],
},
});