diff options
| author | Sho Sakuma <me@m1sk9.dev> | 2026-03-05 21:25:51 +0900 |
|---|---|---|
| committer | Sho Sakuma <me@m1sk9.dev> | 2026-03-05 21:25:51 +0900 |
| commit | 13c948cb749f8cccacc10eed94664133195337f9 (patch) | |
| tree | cda7bdc8db7026b7847c5342c78ea690496bc6ca /docs/.vitepress/config.mts | |
| parent | e02f825dbba52d3100c86e6f783cd88a33b7ed22 (diff) | |
| download | LunaticChat-13c948cb749f8cccacc10eed94664133195337f9.tar.gz LunaticChat-13c948cb749f8cccacc10eed94664133195337f9.tar.bz2 LunaticChat-13c948cb749f8cccacc10eed94664133195337f9.zip | |
feat(docs): add version system with @viteplus/versions
Introduce multi-version documentation support using @viteplus/versions.
Add VersionSwitcher nav component, VersionBanner for non-latest versions,
custom theme with Layout override, and v1 archive placeholder.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'docs/.vitepress/config.mts')
| -rw-r--r-- | docs/.vitepress/config.mts | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index c96f8b6..a9c733a 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -1,8 +1,8 @@ -import { defineConfig } from 'vitepress'; +import { defineVersionedConfig } from '@viteplus/versions'; import { en } from './config/en'; import { ja } from './config/ja'; -export default defineConfig({ +export default defineVersionedConfig({ cleanUrls: true, description: 'Next-generation channel chat plugin for Paper/Velocity', head: [['link', { href: '/favicon.ico', rel: 'icon' }]], @@ -20,7 +20,6 @@ export default defineConfig({ }, }, outDir: './dist', - srcDir: './src', themeConfig: { socialLinks: [ { icon: 'github', link: 'https://github.com/m1sk9/LunaticChat' }, @@ -28,7 +27,13 @@ export default defineConfig({ }, title: 'LunaticChat Docs', titleTemplate: 'LunaticChat', + versionsConfig: { + current: 'v0 (1.21.x) - Latest', + sources: 'src', + archive: 'archive', + versionSwitcher: false, + }, vite: { - publicDir: '../.vitepress/public', + publicDir: '.vitepress/public', }, }); |
