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"
|
||||||
|
|||||||
+43
-30
@@ -1,40 +1,53 @@
|
|||||||
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',
|
||||||
title: 'Continuwuity',
|
title: 'Continuwuity',
|
||||||
description: 'A community-driven Matrix homeserver',
|
description: 'A community-driven Matrix homeserver',
|
||||||
icon: '/assets/logo.svg',
|
icon: '/assets/logo.svg',
|
||||||
logo: {
|
logo: {
|
||||||
light: '/assets/logo.svg',
|
light: '/assets/logo.svg',
|
||||||
dark: '/assets/logo.svg',
|
dark: '/assets/logo.svg',
|
||||||
},
|
},
|
||||||
themeConfig: {
|
themeConfig: {
|
||||||
socialLinks: [
|
socialLinks: [
|
||||||
{
|
{
|
||||||
icon: 'github',
|
icon: 'github',
|
||||||
mode: 'link',
|
mode: 'link',
|
||||||
content: 'https://github.com/continuwuity/continuwuity',
|
content: 'https://github.com/continuwuity/continuwuity',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: {
|
icon: {
|
||||||
svg: `<svg role="img" viewBox="0 0 24 24" width="100%" xmlns="http://www.w3.org/2000/svg"><title>Matrix</title><path fill="currentColor" d="M.632.55v22.9H2.28V24H0V0h2.28v.55zm7.043 7.26v1.157h.033c.309-.443.683-.784 1.117-1.024.433-.245.936-.365 1.5-.365.54 0 1.033.107 1.481.314.448.208.785.582 1.02 1.108.254-.374.6-.706 1.034-.992.434-.287.95-.43 1.546-.43.453 0 .872.056 1.26.167.388.11.716.286.993.53.276.245.489.559.646.951.152.392.23.863.23 1.417v5.728h-2.349V11.52c0-.286-.01-.559-.032-.812a1.755 1.755 0 0 0-.18-.66 1.106 1.106 0 0 0-.438-.448c-.194-.11-.457-.166-.785-.166-.332 0-.6.064-.803.189a1.38 1.38 0 0 0-.48.499 1.946 1.946 0 0 0-.231.696 5.56 5.56 0 0 0-.06.785v4.768h-2.35v-4.8c0-.254-.004-.503-.018-.752a2.074 2.074 0 0 0-.143-.688 1.052 1.052 0 0 0-.415-.503c-.194-.125-.476-.19-.854-.19-.111 0-.259.024-.439.074-.18.051-.36.143-.53.282-.171.138-.319.337-.439.595-.12.259-.18.6-.18 1.02v4.966H5.46V7.81zm15.693 15.64V.55H21.72V0H24v24h-2.28v-.55z"/></svg>`
|
svg: `<svg role="img" viewBox="0 0 24 24" width="100%" xmlns="http://www.w3.org/2000/svg"><title>Matrix</title><path fill="currentColor" d="M.632.55v22.9H2.28V24H0V0h2.28v.55zm7.043 7.26v1.157h.033c.309-.443.683-.784 1.117-1.024.433-.245.936-.365 1.5-.365.54 0 1.033.107 1.481.314.448.208.785.582 1.02 1.108.254-.374.6-.706 1.034-.992.434-.287.95-.43 1.546-.43.453 0 .872.056 1.26.167.388.11.716.286.993.53.276.245.489.559.646.951.152.392.23.863.23 1.417v5.728h-2.349V11.52c0-.286-.01-.559-.032-.812a1.755 1.755 0 0 0-.18-.66 1.106 1.106 0 0 0-.438-.448c-.194-.11-.457-.166-.785-.166-.332 0-.6.064-.803.189a1.38 1.38 0 0 0-.48.499 1.946 1.946 0 0 0-.231.696 5.56 5.56 0 0 0-.06.785v4.768h-2.35v-4.8c0-.254-.004-.503-.018-.752a2.074 2.074 0 0 0-.143-.688 1.052 1.052 0 0 0-.415-.503c-.194-.125-.476-.19-.854-.19-.111 0-.259.024-.439.074-.18.051-.36.143-.53.282-.171.138-.319.337-.439.595-.12.259-.18.6-.18 1.02v4.966H5.46V7.81zm15.693 15.64V.55H21.72V0H24v24h-2.28v-.55z"/></svg>`
|
||||||
|
},
|
||||||
|
mode: 'link',
|
||||||
|
content: 'https://matrix.to/#/#continuwuity:continuwuity.org',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
lastUpdated: true,
|
||||||
|
enableContentAnimation: true,
|
||||||
|
enableAppearanceAnimation: false,
|
||||||
|
footer: {
|
||||||
},
|
},
|
||||||
mode: 'link',
|
|
||||||
content: 'https://matrix.to/#/#continuwuity:continuwuity.org',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
lastUpdated: true,
|
|
||||||
enableContentAnimation: true,
|
|
||||||
enableAppearanceAnimation: false,
|
|
||||||
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