mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
docs: Update rspress, add redirects
This commit is contained in:
Generated
+910
-52
File diff suppressed because it is too large
Load Diff
+2
-1
@@ -22,7 +22,8 @@
|
|||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"type": "commonjs",
|
"type": "commonjs",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rspress/core": "^2.0.0-beta.35",
|
"@rspress/core": "^2.0.0-rc.1",
|
||||||
|
"@rspress/plugin-client-redirects": "^2.0.0-alpha.12",
|
||||||
"@rspress/plugin-preview": "^2.0.0-beta.35",
|
"@rspress/plugin-preview": "^2.0.0-beta.35",
|
||||||
"@rspress/plugin-sitemap": "^2.0.0-beta.23",
|
"@rspress/plugin-sitemap": "^2.0.0-beta.23",
|
||||||
"typescript": "^5.9.3"
|
"typescript": "^5.9.3"
|
||||||
|
|||||||
+14
-1
@@ -1,6 +1,7 @@
|
|||||||
import { defineConfig } from '@rspress/core';
|
import { defineConfig } from '@rspress/core';
|
||||||
import { pluginPreview } from '@rspress/plugin-preview';
|
import { pluginPreview } from '@rspress/plugin-preview';
|
||||||
import { pluginSitemap } from '@rspress/plugin-sitemap';
|
import { pluginSitemap } from '@rspress/plugin-sitemap';
|
||||||
|
import { pluginClientRedirects } from '@rspress/plugin-client-redirects';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
root: 'docs',
|
root: 'docs',
|
||||||
@@ -30,11 +31,23 @@ export default defineConfig({
|
|||||||
enableContentAnimation: true,
|
enableContentAnimation: true,
|
||||||
enableAppearanceAnimation: false,
|
enableAppearanceAnimation: false,
|
||||||
footer: {
|
footer: {
|
||||||
// message: 'Built with Rspress',
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
plugins: [pluginPreview(), pluginSitemap({
|
plugins: [pluginPreview(), pluginSitemap({
|
||||||
siteUrl: 'https://continuwuity.org', // TODO: Set automatically in build pipeline
|
siteUrl: 'https://continuwuity.org', // TODO: Set automatically in build pipeline
|
||||||
|
}),
|
||||||
|
pluginClientRedirects({
|
||||||
|
redirects: [{
|
||||||
|
from: '/configuration/examples',
|
||||||
|
to: '/reference/config'
|
||||||
|
}, {
|
||||||
|
from: '/admin_reference',
|
||||||
|
to: '/reference/admin'
|
||||||
|
}, {
|
||||||
|
from: '/server_reference',
|
||||||
|
to: '/reference/server'
|
||||||
|
}
|
||||||
|
]
|
||||||
})],
|
})],
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user