-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrspress.config.ts
47 lines (45 loc) · 1.3 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
import * as path from 'path';
import {defineConfig} from 'rspress/config';
// import {pluginLastUpdated} from '@rspress/plugin-last-updated';
// import { pluginPreview } from '@rspress/plugin-preview';
// import { pluginShiki } from '@rspress/plugin-shiki';
// import ghPages from 'rspress-plugin-gh-pages';
export default defineConfig({
root: path.join(__dirname, 'docs'),
title: 'lazygophers',
description: 'lazygophers document',
icon: '/logo.png',
logo: {
light: '/logo-light.png',
dark: '/logo-dark.png',
},
logoText: "lazygophers",
markdown: {
// 使用 JS 版本的 MDX 编译器
mdxRs: false,
showLineNumbers: true,
defaultWrapCode: true,
},
plugins: [
// pluginLastUpdated(),
// pluginPreview(),
// pluginShiki(),
// ghPages({
// repo: 'https://github.com/linbudu599/rspress-plugins.git',
// branch: 'website',
// }),
],
themeConfig: {
hideNavbar: 'auto',
enableContentAnimation: true,
enableScrollToTop: true,
localeRedirect: 'auto',
socialLinks: [
{
icon: 'github',
mode: 'link',
content: 'https://github.com/lazygophers'
},
],
},
});