-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrspress.config.ts
69 lines (67 loc) · 1.6 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import * as path from 'node:path';
import { defineConfig } from 'rspress/config';
import { pluginRss } from '@rspress/plugin-rss';
import pluginSitemap from 'rspress-plugin-sitemap';
import { pluginFontOpenSans } from 'rspress-plugin-font-open-sans';
// import { Myplugin } from './plugins/index';
const siteUrl = 'https://iamsee.top';
export default defineConfig({
root: 'docs',
globalStyles: path.join(__dirname, 'styles/index.css'),
title: 'Rock Chen',
icon: '/favicon.ico',
logo: {
light: '/favicon.ico',
dark: '/favicon.ico',
},
logoText: 'BLOG',
markdown: {
checkDeadLinks: true,
},
ssg: {
strict: true,
},
plugins: [
// Myplugin(),
pluginFontOpenSans(),
pluginRss({
siteUrl: siteUrl,
feed: { id:"feed",test: '/blog/' },
}),
pluginSitemap({
domain: siteUrl,
}),
],
route: {
cleanUrls: true,
// exclude: ['**/fragments/**'],
},
themeConfig: {
outlineTitle: 'ON THIS PAGE',
hideNavbar: 'auto',
enableContentAnimation: true,
enableAppearanceAnimation: true,
enableScrollToTop: true,
searchPlaceholderText: 'Search Blog',
footer: {
message: 'CC BY-NC-SA 4.0 2023-PRESENT © chansee97',
},
socialLinks: [
{
icon: 'wechat',
mode: 'img',
content: "https://cdn.jsdelivr.net/gh/chansee97/static/wechat.png",
},
{
icon: 'github',
mode: 'link',
content: 'https://github.com/chansee97',
},
{
icon: 'bilibili',
mode: 'link',
content: 'https://space.bilibili.com/3850132',
},
],
},
});