diff options
| author | Sho Sakuma <me@m1sk9.dev> | 2026-01-25 11:59:46 +0900 |
|---|---|---|
| committer | Sho Sakuma <me@m1sk9.dev> | 2026-01-25 11:59:46 +0900 |
| commit | 1b1491f09771a788c7afa9406783068838bb6a73 (patch) | |
| tree | 75ea4f3dcaaf63a1d4a91f75fd4d81d1b227a086 | |
| parent | e3387a401c6d0d094b3afa734558e9257465a42b (diff) | |
| download | LunaticChat-1b1491f09771a788c7afa9406783068838bb6a73.tar.gz LunaticChat-1b1491f09771a788c7afa9406783068838bb6a73.tar.bz2 LunaticChat-1b1491f09771a788c7afa9406783068838bb6a73.zip | |
docs: Split theme settings by language
| -rw-r--r-- | docs/.vitepress/config.mts | 228 | ||||
| -rw-r--r-- | docs/.vitepress/config/en.ts | 114 | ||||
| -rw-r--r-- | docs/.vitepress/config/ja.ts | 114 |
3 files changed, 232 insertions, 224 deletions
diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index f88316e..892e52e 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -1,4 +1,6 @@ import { defineConfig } from 'vitepress'; +import { ja } from './config/ja'; +import { en } from './config/en'; export default defineConfig({ title: 'LunaticChat Docs', @@ -17,235 +19,13 @@ export default defineConfig({ root: { label: '日本語', lang: 'ja-JP', - themeConfig: { - nav: [ - { text: 'ガイド', link: '/guide/getting-started' }, - { text: 'リファレンス', link: '/reference' }, - ], - sidebar: { - '/guide/': [ - { - text: 'はじめる', - link: '/guide/getting-started', - }, - { - text: 'LunaticChat について', - link: '/guide/about', - }, - { - text: 'サーバー管理者向け', - items: [ - { - text: 'キャッシュシステム', - link: '/guide/admin/cache', - }, - { - text: '設定', - link: '/guide/admin/configuration', - }, - { - text: 'Velocity 連携', - link: '/guide/admin/velocity', - }, - ], - }, - { - text: 'プレイヤー向け', - items: [ - { - text: 'チャンネルチャット', - link: '/guide/player/channel-chat', - }, - { - text: 'ダイレクトメッセージ', - link: '/guide/player/direct-message', - }, - { - text: 'ローマ字変換', - link: '/guide/player/japanese-romanization', - }, - ], - }, - { - text: 'パッチノート', - items: [ - { - text: 'プラグイン', - link: '/guide/patch-notes/plugin', - }, - { - text: 'キャッシュファイル', - link: '/guide/patch-notes/cache-file', - }, - ], - }, - ], - '/reference/': [ - { - text: 'パーミッション', - link: '/reference/permissions', - }, - { - text: 'コマンド', - items: [ - { - text: '/tell', - link: '/reference/commands/tell', - }, - { - text: '/reply', - link: '/reference/commands/reply', - }, - { - text: '/jp', - link: '/reference/commands/jp', - }, - { - text: '/notice', - link: '/reference/commands/notice', - }, - { - text: '/lc', - items: [ - { - text: '/lc settings', - link: '/reference/commands/lc/settings', - }, - { - text: '/lc status', - link: '/reference/commands/lc/status', - }, - ], - }, - ], - }, - ], - }, - editLink: { - pattern: 'https://github.com/m1sk9/LunaticChat/edit/main/docs/src/:path', - text: 'GitHub で編集', - }, - footer: { - copyright: 'Copyright © 2026 m1sk9', - }, - }, + themeConfig: ja, }, en: { label: 'English', lang: 'en-US', link: '/en/', - themeConfig: { - nav: [ - { text: 'Guide', link: '/en/guide/getting-started' }, - { text: 'Reference', link: '/en/reference' }, - ], - sidebar: { - '/en/guide/': [ - { - text: 'Getting Started', - link: '/en/guide/getting-started', - }, - { - text: 'About LunaticChat', - link: '/en/guide/about', - }, - { - text: 'For Server Administrators', - items: [ - { - text: 'Cache System', - link: '/en/guide/admin/cache', - }, - { - text: 'Configuration', - link: '/en/guide/admin/configuration', - }, - { - text: 'Velocity Integration', - link: '/en/guide/admin/velocity', - }, - ], - }, - { - text: 'For Players', - items: [ - { - text: 'Channel Chat', - link: '/en/guide/player/channel-chat', - }, - { - text: 'Direct Messages', - link: '/en/guide/player/direct-message', - }, - { - text: 'Romanization Conversion', - link: '/en/guide/player/japanese-romanization', - }, - ], - }, - { - text: 'Patch Notes', - items: [ - { - text: 'Plugin', - link: '/en/guide/patch-notes/plugin', - }, - { - text: 'Cache File', - link: '/en/guide/patch-notes/cache-file', - }, - ], - }, - ], - '/en/reference/': [ - { - text: 'Permissions', - link: '/en/reference/permissions', - }, - { - text: 'Commands', - items: [ - { - text: '/tell', - link: '/en/reference/commands/tell', - }, - { - text: '/reply', - link: '/en/reference/commands/reply', - }, - { - text: '/jp', - link: '/en/reference/commands/jp', - }, - { - text: '/notice', - link: '/en/reference/commands/notice', - }, - { - text: '/lc', - items: [ - { - text: '/lc settings', - link: '/en/reference/commands/lc/settings', - }, - { - text: '/lc status', - link: '/en/reference/commands/lc/status', - }, - ], - }, - ], - }, - ], - }, - editLink: { - pattern: 'https://github.com/m1sk9/LunaticChat/edit/main/docs/src/:path', - text: 'Edit this page on GitHub', - }, - footer: { - copyright: 'Copyright © 2026 m1sk9', - }, - }, + themeConfig: en, }, }, }); diff --git a/docs/.vitepress/config/en.ts b/docs/.vitepress/config/en.ts new file mode 100644 index 0000000..0f83c9e --- /dev/null +++ b/docs/.vitepress/config/en.ts @@ -0,0 +1,114 @@ +import type { DefaultTheme } from 'vitepress'; + +export const en: DefaultTheme.Config = { + nav: [ + { text: 'Guide', link: '/en/guide/getting-started' }, + { text: 'Reference', link: '/en/reference' }, + ], + sidebar: { + '/en/guide/': [ + { + text: 'Getting Started', + link: '/en/guide/getting-started', + }, + { + text: 'About LunaticChat', + link: '/en/guide/about', + }, + { + text: 'For Server Administrators', + items: [ + { + text: 'Cache System', + link: '/en/guide/admin/cache', + }, + { + text: 'Configuration', + link: '/en/guide/admin/configuration', + }, + { + text: 'Velocity Integration', + link: '/en/guide/admin/velocity', + }, + ], + }, + { + text: 'For Players', + items: [ + { + text: 'Channel Chat', + link: '/en/guide/player/channel-chat', + }, + { + text: 'Direct Messages', + link: '/en/guide/player/direct-message', + }, + { + text: 'Romanization Conversion', + link: '/en/guide/player/japanese-romanization', + }, + ], + }, + { + text: 'Patch Notes', + items: [ + { + text: 'Plugin', + link: '/en/guide/patch-notes/plugin', + }, + { + text: 'Cache File', + link: '/en/guide/patch-notes/cache-file', + }, + ], + }, + ], + '/en/reference/': [ + { + text: 'Permissions', + link: '/en/reference/permissions', + }, + { + text: 'Commands', + items: [ + { + text: '/tell', + link: '/en/reference/commands/tell', + }, + { + text: '/reply', + link: '/en/reference/commands/reply', + }, + { + text: '/jp', + link: '/en/reference/commands/jp', + }, + { + text: '/notice', + link: '/en/reference/commands/notice', + }, + { + text: '/lc', + items: [ + { + text: '/lc settings', + link: '/en/reference/commands/lc/settings', + }, + { + text: '/lc status', + link: '/en/reference/commands/lc/status', + }, + ], + }, + ], + }, + ], + }, + editLink: { + pattern: 'https://github.com/m1sk9/LunaticChat/edit/main/docs/src/:path', + text: 'Edit this page on GitHub', + }, + footer: { + copyright: 'Copyright © 2026 m1sk9', + }, +}; diff --git a/docs/.vitepress/config/ja.ts b/docs/.vitepress/config/ja.ts new file mode 100644 index 0000000..5264820 --- /dev/null +++ b/docs/.vitepress/config/ja.ts @@ -0,0 +1,114 @@ +import type { DefaultTheme } from 'vitepress'; + +export const ja: DefaultTheme.Config = { + nav: [ + { text: 'ガイド', link: '/guide/getting-started' }, + { text: 'リファレンス', link: '/reference' }, + ], + sidebar: { + '/guide/': [ + { + text: 'はじめる', + link: '/guide/getting-started', + }, + { + text: 'LunaticChat について', + link: '/guide/about', + }, + { + text: 'サーバー管理者向け', + items: [ + { + text: 'キャッシュシステム', + link: '/guide/admin/cache', + }, + { + text: '設定', + link: '/guide/admin/configuration', + }, + { + text: 'Velocity 連携', + link: '/guide/admin/velocity', + }, + ], + }, + { + text: 'プレイヤー向け', + items: [ + { + text: 'チャンネルチャット', + link: '/guide/player/channel-chat', + }, + { + text: 'ダイレクトメッセージ', + link: '/guide/player/direct-message', + }, + { + text: 'ローマ字変換', + link: '/guide/player/japanese-romanization', + }, + ], + }, + { + text: 'パッチノート', + items: [ + { + text: 'プラグイン', + link: '/guide/patch-notes/plugin', + }, + { + text: 'キャッシュファイル', + link: '/guide/patch-notes/cache-file', + }, + ], + }, + ], + '/reference/': [ + { + text: 'パーミッション', + link: '/reference/permissions', + }, + { + text: 'コマンド', + items: [ + { + text: '/tell', + link: '/reference/commands/tell', + }, + { + text: '/reply', + link: '/reference/commands/reply', + }, + { + text: '/jp', + link: '/reference/commands/jp', + }, + { + text: '/notice', + link: '/reference/commands/notice', + }, + { + text: '/lc', + items: [ + { + text: '/lc settings', + link: '/reference/commands/lc/settings', + }, + { + text: '/lc status', + link: '/reference/commands/lc/status', + }, + ], + }, + ], + }, + ], + }, + editLink: { + pattern: 'https://github.com/m1sk9/LunaticChat/edit/main/docs/src/:path', + text: 'GitHub で編集', + }, + footer: { + copyright: 'Copyright © 2026 m1sk9', + }, +}; |
