diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4832042e4..c3272f71d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1146,6 +1146,9 @@ importers: rspress-plugin-font-open-sans: specifier: 1.0.0 version: 1.0.0 + rspress-plugin-sitemap: + specifier: ^1.1.4 + version: 1.1.4 packages: @@ -6499,6 +6502,9 @@ packages: rspress-plugin-font-open-sans@1.0.0: resolution: {integrity: sha512-4GP0pd7h3W8EWdqE0VkA62nzUJZNy4ZnYK7be8+lOKHQKsQ5nZ+22A/VurNssi1eZFx3kjwbmIuoAkgb5W8S9Q==} + rspress-plugin-sitemap@1.1.4: + resolution: {integrity: sha512-SnQUWU1zUw6y4er93Xb27MRbdAs8D6wlEycjU4vTq8bZdFrICp/Gxh0QaCYpZ5OeSURxUsfS6rkInPWkpSwQ7g==} + rspress@2.0.0-beta.11: resolution: {integrity: sha512-rcJTNs+QN0yXAGAvTstHV3oIGS7S8aYmGe+AO4RE8LDcukhp+zm8womok0QTK8yo/A1eVDVPDqA+05mcJBH+Gg==} hasBin: true @@ -14099,6 +14105,8 @@ snapshots: rspress-plugin-font-open-sans@1.0.0: {} + rspress-plugin-sitemap@1.1.4: {} + rspress@2.0.0-beta.11(@types/react@19.1.6)(acorn@8.14.1): dependencies: '@rsbuild/core': 1.3.22 diff --git a/website/package.json b/website/package.json index d25920147..9d3d362fd 100644 --- a/website/package.json +++ b/website/package.json @@ -25,6 +25,7 @@ "rsbuild-plugin-google-analytics": "1.0.3", "rsbuild-plugin-open-graph": "^1.0.2", "rspress": "2.0.0-beta.11", - "rspress-plugin-font-open-sans": "1.0.0" + "rspress-plugin-font-open-sans": "1.0.0", + "rspress-plugin-sitemap": "^1.1.4" } } diff --git a/website/rspress.config.ts b/website/rspress.config.ts index c7406157b..e923ecabf 100644 --- a/website/rspress.config.ts +++ b/website/rspress.config.ts @@ -10,6 +10,7 @@ import { import { pluginGoogleAnalytics } from 'rsbuild-plugin-google-analytics'; import { pluginOpenGraph } from 'rsbuild-plugin-open-graph'; import { pluginFontOpenSans } from 'rspress-plugin-font-open-sans'; +import pluginSitemap from 'rspress-plugin-sitemap'; import { defineConfig } from 'rspress/config'; const siteUrl = 'https://rslib.rs'; @@ -45,6 +46,9 @@ export default defineConfig({ }, ], }), + pluginSitemap({ + domain: siteUrl, + }), ], root: path.join(__dirname, 'docs'), lang: 'en',