Skip to content

Commit 091b22e

Browse files
authored
docs: generate the sitemap for SEO (#1049)
1 parent c952080 commit 091b22e

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

pnpm-lock.yaml

Lines changed: 8 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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"rsbuild-plugin-google-analytics": "1.0.3",
2626
"rsbuild-plugin-open-graph": "^1.0.2",
2727
"rspress": "2.0.0-beta.11",
28-
"rspress-plugin-font-open-sans": "1.0.0"
28+
"rspress-plugin-font-open-sans": "1.0.0",
29+
"rspress-plugin-sitemap": "^1.1.4"
2930
}
3031
}

website/rspress.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
import { pluginGoogleAnalytics } from 'rsbuild-plugin-google-analytics';
1111
import { pluginOpenGraph } from 'rsbuild-plugin-open-graph';
1212
import { pluginFontOpenSans } from 'rspress-plugin-font-open-sans';
13+
import pluginSitemap from 'rspress-plugin-sitemap';
1314
import { defineConfig } from 'rspress/config';
1415

1516
const siteUrl = 'https://rslib.rs';
@@ -45,6 +46,9 @@ export default defineConfig({
4546
},
4647
],
4748
}),
49+
pluginSitemap({
50+
domain: siteUrl,
51+
}),
4852
],
4953
root: path.join(__dirname, 'docs'),
5054
lang: 'en',

0 commit comments

Comments
 (0)