Skip to content

Commit 8462f81

Browse files
committed
chore: update
1 parent b45b26c commit 8462f81

File tree

3 files changed

+64
-1
lines changed

3 files changed

+64
-1
lines changed

pnpm-lock.yaml

Lines changed: 31 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"@rsbuild/plugin-sass": "^1.3.1",
1414
"@rslib/tsconfig": "workspace:*",
1515
"@rspress/plugin-llms": "2.0.0-beta.5",
16+
"@rspress/plugin-rss": "2.0.0-beta.5",
1617
"@rstack-dev/doc-ui": "1.8.0",
1718
"@shikijs/transformers": "^3.4.0",
1819
"@types/node": "^22.8.1",

website/rspress.config.ts

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,44 @@
11
import path from 'node:path';
22
import { pluginSass } from '@rsbuild/plugin-sass';
33
import { pluginLlms } from '@rspress/plugin-llms';
4+
import { pluginRss } from '@rspress/plugin-rss';
45
import { transformerNotationHighlight } from '@shikijs/transformers';
56
import { pluginGoogleAnalytics } from 'rsbuild-plugin-google-analytics';
67
import { pluginFontOpenSans } from 'rspress-plugin-font-open-sans';
78
import { defineConfig } from 'rspress/config';
89

10+
const siteUrl = 'https://lib.rsbuild.dev';
11+
912
export default defineConfig({
10-
plugins: [pluginFontOpenSans(), pluginLlms()],
13+
plugins: [
14+
pluginFontOpenSans(),
15+
pluginLlms(),
16+
pluginRss({
17+
siteUrl,
18+
feed: [
19+
{
20+
id: 'blog-rss',
21+
test: '/blog',
22+
title: 'Rslib Blog',
23+
language: 'en',
24+
output: {
25+
type: 'rss',
26+
filename: 'blog-rss.xml',
27+
},
28+
},
29+
{
30+
id: 'blog-rss-zh',
31+
test: '/zh/blog',
32+
title: 'Rslib 博客',
33+
language: 'zh-CN',
34+
output: {
35+
type: 'rss',
36+
filename: 'blog-rss-zh.xml',
37+
},
38+
},
39+
],
40+
}),
41+
],
1142
root: path.join(__dirname, 'docs'),
1243
lang: 'en',
1344
base: '/',

0 commit comments

Comments
 (0)