feat(docs): Sitemap
This commit is contained in:
parent
6b11a65545
commit
5935d99af0
3 changed files with 19 additions and 1 deletions
14
package-lock.json
generated
14
package-lock.json
generated
|
|
@ -11,6 +11,7 @@
|
|||
"devDependencies": {
|
||||
"@rspress/core": "^2.0.0-beta.35",
|
||||
"@rspress/plugin-preview": "^2.0.0-beta.35",
|
||||
"@rspress/plugin-sitemap": "^2.0.0-beta.23",
|
||||
"typescript": "^5.9.3"
|
||||
}
|
||||
},
|
||||
|
|
@ -1231,6 +1232,19 @@
|
|||
"react-router-dom": "^6.8.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@rspress/plugin-sitemap": {
|
||||
"version": "2.0.0-beta.23",
|
||||
"resolved": "https://registry.npmjs.org/@rspress/plugin-sitemap/-/plugin-sitemap-2.0.0-beta.23.tgz",
|
||||
"integrity": "sha512-2mn8QTigaKCVjfRmI0o9uaJZ7fhDnOJ8cOhuX4cwMgRBHbT5aVcYJcCfvZ612S79l/55ONOSOoG8D1b36qcdlQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=18.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@rspress/core": "^2.0.0-beta.23"
|
||||
}
|
||||
},
|
||||
"node_modules/@rspress/runtime": {
|
||||
"version": "2.0.0-beta.35",
|
||||
"resolved": "https://registry.npmjs.org/@rspress/runtime/-/runtime-2.0.0-beta.35.tgz",
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@
|
|||
"devDependencies": {
|
||||
"@rspress/core": "^2.0.0-beta.35",
|
||||
"@rspress/plugin-preview": "^2.0.0-beta.35",
|
||||
"@rspress/plugin-sitemap": "^2.0.0-beta.23",
|
||||
"typescript": "^5.9.3"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import { defineConfig } from '@rspress/core';
|
||||
import { pluginPreview } from '@rspress/plugin-preview';
|
||||
import { pluginSitemap } from '@rspress/plugin-sitemap';
|
||||
|
||||
export default defineConfig({
|
||||
root: 'docs',
|
||||
|
|
@ -36,5 +37,7 @@ export default defineConfig({
|
|||
},
|
||||
},
|
||||
|
||||
plugins: [pluginPreview()],
|
||||
plugins: [pluginPreview(), pluginSitemap({
|
||||
siteUrl: 'https://continuwuity.org', // TODO: Set automatically in build pipeline
|
||||
})],
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue