diff --git a/.github/workflows/docs-parity.yml b/.github/workflows/docs-parity.yml index c09e72e..20ff4f1 100644 --- a/.github/workflows/docs-parity.yml +++ b/.github/workflows/docs-parity.yml @@ -13,5 +13,5 @@ jobs: with: node-version: 22 - - name: Check en/zh locale parity + - name: Check locale parity (en/zh/ja/ru) run: node scripts/check-locale-parity.mjs diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3f382c4..157bd88 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,16 +2,18 @@ This guide covers how documentation is structured, translated, and checked in this repository. A complete Chinese version follows at the bottom (中文对照). -## Keep the Two Locales in Lockstep +## Keep the Locales in Lockstep - English pages live under `docs/`. -- Chinese pages live under `docs/zh/` with **identical paths**: `docs/guides/memory.md` mirrors to `docs/zh/guides/memory.md`. -- **Every content PR updates both locales.** English is the source of truth; the Chinese mirror lands **in the same PR**, never in a follow-up. +- Chinese, Japanese, and Russian pages live under `docs/zh/`, `docs/ja/`, and `docs/ru/` with **identical paths**: `docs/guides/memory.md` mirrors to `docs/zh/guides/memory.md`, `docs/ja/guides/memory.md`, and `docs/ru/guides/memory.md`. +- **Every content PR updates all locales.** English is the source of truth; the Chinese, Japanese, and Russian mirrors land **in the same PR**, never in a follow-up. ## Use the Terminology Glossary Translate product terms exactly as listed. Where a term has a product UI key, the **bold UI label** in the docs must use the product's own locale string for that key — never a re-translation of the English value. +The table below lists English/Chinese; for Japanese, use the product's `ja.json` string for the same UI key (e.g. workspace tab = **Workspace**, Platforms tab = **プラットフォーム**, Supermarket = **マーケットプレイス**, Apps tab = **アプリ**, skill = スキル, connector = コネクター, dependencies = 依存関係). The product has **no Russian UI locale**: in Russian pages every bold UI label stays as the English UI string, with an optional Russian gloss in parentheses on first mention. + | English | 中文 | Product UI key | |---------|------|----------------| | Bot | Bot | - | @@ -73,7 +75,7 @@ This keeps links stable across locales and rewordings. node scripts/check-locale-parity.mjs ``` -It must pass. It verifies that every page under `docs/` has its mirror under `docs/zh/` (and vice versa), and that the sidebars in `docs/.vitepress/en.ts` and `docs/.vitepress/zh.ts` link the same set of pages. CI runs the same script on every pull request. +It must pass. It verifies that every page under `docs/` has its mirror under `docs/zh/`, `docs/ja/`, and `docs/ru/` (and vice versa), and that the sidebars in `docs/.vitepress/en.ts`, `zh.ts`, `ja.ts`, and `ru.ts` link the same set of pages. CI runs the same script on every pull request. --- @@ -81,11 +83,11 @@ It must pass. It verifies that every page under `docs/` has its mirror under `do 本指南说明这个仓库里文档怎么组织、怎么翻译、怎么检查。 -## 两种语言同步走 +## 多语言同步走 - 英文页面在 `docs/` 下。 -- 中文页面在 `docs/zh/` 下,**路径完全一致**:`docs/guides/memory.md` 对应 `docs/zh/guides/memory.md`。 -- **每个内容 PR 同时更新两种语言。** 英文是唯一事实来源;中文镜像**在同一个 PR 里**落地,不留到后续 PR。 +- 中文、日文、俄文页面分别在 `docs/zh/`、`docs/ja/`、`docs/ru/` 下,**路径完全一致**:`docs/guides/memory.md` 对应 `docs/zh/guides/memory.md`、`docs/ja/guides/memory.md` 与 `docs/ru/guides/memory.md`。 +- **每个内容 PR 同时更新所有语言。** 英文是唯一事实来源;中文、日文、俄文镜像**在同一个 PR 里**落地,不留到后续 PR。 ## 按术语表翻译 @@ -127,7 +129,7 @@ It must pass. It verifies that every page under `docs/` has its mirror under `do ## 给可深链的标题加显式锚点 -FAQ 条目和所有要被深链的标题带显式 ASCII `{#id}`,**两种语言完全相同**: +FAQ 条目和所有要被深链的标题带显式 ASCII `{#id}`,**所有语言完全相同**: ```md @@ -152,4 +154,4 @@ FAQ 条目和所有要被深链的标题带显式 ASCII `{#id}`,**两种语言 node scripts/check-locale-parity.mjs ``` -必须通过。它检查 `docs/` 下每个页面在 `docs/zh/` 下都有镜像(反之亦然),并且 `docs/.vitepress/en.ts` 与 `docs/.vitepress/zh.ts` 两份侧栏链接同一组页面。CI 会在每个 pull request 上跑同一个脚本。 +必须通过。它检查 `docs/` 下每个页面在 `docs/zh/`、`docs/ja/`、`docs/ru/` 下都有镜像(反之亦然),并且 `docs/.vitepress/en.ts`、`zh.ts`、`ja.ts`、`ru.ts` 各份侧栏链接同一组页面。CI 会在每个 pull request 上跑同一个脚本。 diff --git a/README.md b/README.md index 9b95a44..5b85536 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ The product source code lives in [`felinics/Memoh`](https://github.com/felinics/ - **Guides** for SaaS/product usage: bots, workspaces, sessions, memory, MCP, email, scheduled tasks, and slash commands. - **Integrations** for channels and providers, including messaging platforms, LLMs, memory providers, TTS, and web search. - **Self-hosted** docs for Desktop, Server Deploy, workspace backends, Kata, and SQLite. -- **English and Chinese docs** under `docs/` and `docs/zh/`. +- **English, Chinese, Japanese, and Russian docs** under `docs/`, `docs/zh/`, `docs/ja/`, and `docs/ru/`. - **Static assets** under `docs/public/`, including screenshots and logos. - **VitePress config** under `docs/.vitepress/`. @@ -35,26 +35,25 @@ The current VitePress site is organized around three primary navigation roots: - `docs/guides/` for product usage guides. - `docs/integrations/` for channels, providers, memory providers, TTS, and web search. -- `docs/self-hosted/` for Desktop, Server Deploy, workspace backends, Kata, and SQLite. +- `docs/self-hosted/` for Desktop, Server Deploy, workspace backends, and connectors (Connect-It). -The Simplified Chinese mirror uses the same structure under `docs/zh/`: +The Simplified Chinese, Japanese, and Russian mirrors use the same structure under `docs/zh/`, `docs/ja/`, and `docs/ru/`: -- `docs/zh/guides/` -- `docs/zh/integrations/` -- `docs/zh/self-hosted/` +- `docs/zh/guides/`, `docs/ja/guides/`, `docs/ru/guides/` +- `docs/zh/integrations/`, `docs/ja/integrations/`, `docs/ru/integrations/` +- `docs/zh/self-hosted/`, `docs/ja/self-hosted/`, `docs/ru/self-hosted/` Legacy paths still exist for old external links, but they are redirect pages instead of the main content source: - `docs/getting-started/` - `docs/installation/` - `docs/channels/` -- `docs/tts-providers/` - `docs/memory-providers/` - Matching Chinese redirects under `docs/zh/` When updating content, edit the primary paths above first. Only touch a legacy redirect page when the redirect target itself changes. -Keep the English and Simplified Chinese docs mirrored. If you add, rename, remove, or move a page in one language, make the matching change in the other language and update both VitePress sidebar files. +Keep the English, Simplified Chinese, Japanese, and Russian docs mirrored. If you add, rename, remove, or move a page in one language, make the matching change in the other languages and update every VitePress sidebar file. Do not edit `docs/.vitepress/dist/` by hand. It is generated build output and should not be treated as source documentation. @@ -97,10 +96,11 @@ pnpm preview │ ├── getting-started/ # Legacy redirects to guides │ ├── installation/ # Legacy redirects to self-hosted │ ├── channels/ # Legacy redirects to integrations/channels -│ ├── tts-providers/ # Legacy redirects to integrations/providers/tts │ ├── memory-providers/ # Legacy redirects to integrations/providers/memory │ ├── public/ # Static images and logo │ ├── zh/ # Simplified Chinese documentation and redirects +│ ├── ja/ # Japanese documentation and redirects +│ ├── ru/ # Russian documentation and redirects │ └── *.md # Landing and compatibility pages ├── package.json └── pnpm-lock.yaml @@ -108,6 +108,14 @@ pnpm preview ## Changelog +### 2026-10 + +- **Client-first corrections round**: top nav is now Guides / Help Center (Integrations and About removed); the Deployment sidebar group is back (Server Deploy, Workspace Backends, Connectors). +- **Apps model**: Supermarket and Skills pages rewritten around the unified App concept (an App bundles Skills, dependencies, and connectors); Skills now documents workspace directories instead of a removed management UI; Connectors moved to the Deployment section. +- **Cloud-baseline Workspace page**: open-source backend configuration and CDI/GPU passthrough moved to Workspace Backends; Preferences page removed; Memory provider entries consolidated into one; TTS: Edge removed. +- **Use Cases removed**: the AI-drafted Use Cases section is gone from nav, sidebar, and pages; it will return as human-written chapters with real screenshots and recordings. +- **Japanese and Russian locales**: full ja and ru translations under `docs/ja/` and `docs/ru/` with their own navs and sidebars. Japanese terminology is aligned with the product's Japanese UI strings; Russian keeps UI labels in English because the product has no Russian UI. The parity script now checks en/zh/ja/ru. + ### 2026-09 - **Navigation restructure**: docs are now organized under a single **References** tree — Getting Started (with Deployment and Channels), Advanced (with Providers → Memory / TTS Providers), and Use Cases. The version selector moved to the header right, and edit links were added to every page. diff --git a/README_CN.md b/README_CN.md index b85caf0..900efcc 100644 --- a/README_CN.md +++ b/README_CN.md @@ -25,7 +25,7 @@ - **教程**:面向 SaaS/产品使用,覆盖机器人、workspace、会话、记忆、MCP、邮件、计划任务和斜杠命令。 - **集成**:渠道和提供方,包括消息平台、LLM、记忆提供方、TTS 和网页搜索。 - **自托管**:Desktop、Server Deploy、workspace backend、Kata 和 SQLite 等开源部署文档。 -- 英文和中文文档,分别位于 `docs/` 和 `docs/zh/`。 +- 英文、中文、日文和俄文文档,分别位于 `docs/`、`docs/zh/`、`docs/ja/` 和 `docs/ru/`。 - 截图、logo 等静态资源,位于 `docs/public/`。 - VitePress 配置,位于 `docs/.vitepress/`。 @@ -35,20 +35,19 @@ - `docs/guides/`:产品使用教程。 - `docs/integrations/`:渠道、提供方、记忆提供方、TTS 和网页搜索。 -- `docs/self-hosted/`:Desktop、Server Deploy、workspace backend、Kata 和 SQLite。 +- `docs/self-hosted/`:Desktop、Server Deploy、workspace backend 和连接器(Connect-It)。 -简体中文文档使用相同结构,位于 `docs/zh/` 下: +简体中文、日文与俄文文档使用相同结构,分别位于 `docs/zh/`、`docs/ja/` 与 `docs/ru/` 下: -- `docs/zh/guides/` -- `docs/zh/integrations/` -- `docs/zh/self-hosted/` +- `docs/zh/guides/`、`docs/ja/guides/`、`docs/ru/guides/` +- `docs/zh/integrations/`、`docs/ja/integrations/`、`docs/ru/integrations/` +- `docs/zh/self-hosted/`、`docs/ja/self-hosted/`、`docs/ru/self-hosted/` 旧路径仍然保留,用于兼容外部旧链接,但它们是重定向页面,不是主要内容源: - `docs/getting-started/` - `docs/installation/` - `docs/channels/` -- `docs/tts-providers/` - `docs/memory-providers/` - `docs/zh/` 下对应的中文重定向路径 @@ -97,10 +96,11 @@ pnpm preview │ ├── getting-started/ # 到 guides 的旧路径重定向 │ ├── installation/ # 到 self-hosted 的旧路径重定向 │ ├── channels/ # 到 integrations/channels 的旧路径重定向 -│ ├── tts-providers/ # 到 integrations/providers/tts 的旧路径重定向 │ ├── memory-providers/ # 到 integrations/providers/memory 的旧路径重定向 │ ├── public/ # 静态图片和 logo │ ├── zh/ # 中文文档和重定向页面 +│ ├── ja/ # 日文文档和重定向页面 +│ ├── ru/ # 俄文文档和重定向页面 │ └── *.md # 入口和兼容页面 ├── package.json └── pnpm-lock.yaml @@ -108,6 +108,14 @@ pnpm preview ## 更新日志 +### 2026-10 + +- **客户端优先修正**:顶栏改为 教程 / 帮助中心(移除 集成 与 关于);侧边栏恢复自部署分组(Server Deploy、Workspace 后端、连接器)。 +- **应用(App)模型**:应用市场与技能页面按统一的 App 概念重写(一个 App 打包 Skills、依赖和连接器);技能页改为说明工作区目录,不再描述已移除的管理界面;连接器移入自部署章节。 +- **工作区页面以 Cloud 为基准**:开源后端配置与 CDI/GPU 透传移至 Workspace 后端;移除用户偏好页;记忆提供方条目合并为一个;移除 TTS: Edge。 +- **移除使用场景**:AI 起草的使用场景章节已从导航、侧边栏和页面中移除;将来以人工撰写、配真实截图与录屏的形式回归。 +- **日语版与俄语版**:`docs/ja/`、`docs/ru/` 下完整翻译,各自独立导航与侧边栏。日文术语对齐产品日文 UI 文案;俄文因产品无俄语界面,UI 名词保留英文。对齐脚本现在检查 en/zh/ja/ru 四语。 + ### 2026-09 - **导航结构重组**:文档统一收入单一的 **References(参考文档)** 树——快速开始(内含部署与渠道)、进阶教程(内含提供方 → 记忆/TTS 提供方)、使用场景。版本选择器移到页头右侧,并为每个页面加上编辑链接。 diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 6faafe0..9f54162 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -2,6 +2,8 @@ import { defineConfig } from 'vitepress' import llmstxt from 'vitepress-plugin-llms' import { en } from './en' import { zh } from './zh' +import { ja } from './ja' +import { ru } from './ru' // https://vitepress.vuejs.org/config/app-configs export default defineConfig({ @@ -21,9 +23,7 @@ export default defineConfig({ themeConfig: { nav: [ { text: 'Guides', link: '/guides/' }, - { text: 'Integrations', link: '/integrations/' }, { text: 'Help Center', link: 'https://memoh.ai/help' }, - { text: 'About', link: '/about.md' }, ], }, }, @@ -33,9 +33,27 @@ export default defineConfig({ themeConfig: { nav: [ { text: '教程', link: '/zh/guides/' }, - { text: '集成', link: '/zh/integrations/' }, { text: '帮助中心', link: 'https://memoh.ai/help' }, - { text: '关于', link: '/zh/about.md' }, + ], + }, + }, + ja: { + label: '日本語', + lang: 'ja', + themeConfig: { + nav: [ + { text: 'ガイド', link: '/ja/guides/' }, + { text: 'ヘルプセンター', link: 'https://memoh.ai/help' }, + ], + }, + }, + ru: { + label: 'Русский', + lang: 'ru', + themeConfig: { + nav: [ + { text: 'Руководства', link: '/ru/guides/' }, + { text: 'Центр помощи', link: 'https://memoh.ai/help' }, ], }, } @@ -46,6 +64,8 @@ export default defineConfig({ sidebar: { ...en, ...zh, + ...ja, + ...ru, }, diff --git a/docs/.vitepress/en.ts b/docs/.vitepress/en.ts index 5d5a71d..90770f5 100644 --- a/docs/.vitepress/en.ts +++ b/docs/.vitepress/en.ts @@ -11,7 +11,6 @@ const references = [ { text: 'Overview', link: '/guides/overview.md' }, { text: 'Quick Start', link: '/guides/quick-start.md' }, { text: 'Working with Bots', link: '/guides/working-with-bots.md' }, - { text: 'Preferences', link: '/guides/preferences.md' }, { text: 'Sessions', link: '/guides/sessions.md' }, { text: 'Files', link: '/guides/files.md' }, { text: 'Slash Commands', link: '/guides/slash-commands.md' }, @@ -45,25 +44,24 @@ const references = [ { text: 'Browser / Computer Use', link: '/guides/browser-computer-use.md' }, { text: 'Skills', link: '/guides/skills.md' }, { text: 'Supermarket', link: '/guides/supermarket.md' }, - { text: 'Connectors', link: '/guides/connectors.md' }, { text: 'Hooks', link: '/guides/hooks.md' }, { text: 'MCP', link: '/guides/mcp.md' }, - { text: 'Memory', link: '/guides/memory.md' }, + { text: 'Long-term Memory', link: '/guides/memory.md' }, { text: 'Compaction', link: '/guides/compaction.md' }, { text: 'Scheduled Tasks', link: '/guides/schedule.md' }, { text: 'LLM Providers', link: '/integrations/providers/llm.md' }, { text: 'Web Search Providers', link: '/integrations/providers/web-search.md' }, { text: 'Video Providers', link: '/integrations/providers/video.md' }, - { text: 'Memory: Built-in', link: '/integrations/providers/memory/builtin.md' }, - { text: 'Memory: Mem0', link: '/integrations/providers/memory/mem0.md' }, - { text: 'Memory: OpenViking', link: '/integrations/providers/memory/openviking.md' }, - { text: 'TTS: Edge', link: '/integrations/providers/tts/edge.md' }, + { text: 'Memory', link: '/integrations/providers/memory/builtin.md' }, ], }, { - text: 'Use Cases', + text: 'Deployment', items: [ - { text: 'Use Cases', link: '/guides/use-cases.md' }, + { text: 'Overview', link: '/self-hosted/' }, + { text: 'Server Deploy', link: '/self-hosted/docker.md' }, + { text: 'Workspace Backends', link: '/self-hosted/workspace-backends.md' }, + { text: 'Connectors (Connect-It)', link: '/self-hosted/connectors.md' }, ], }, ] diff --git a/docs/.vitepress/ja.ts b/docs/.vitepress/ja.ts new file mode 100644 index 0000000..3522ded --- /dev/null +++ b/docs/.vitepress/ja.ts @@ -0,0 +1,73 @@ +const references = [ + { + text: 'リファレンス', + items: [ + { text: '総覧', link: '/ja/guides/' }, + ], + }, + { + text: 'はじめに', + items: [ + { text: '概要', link: '/ja/guides/overview.md' }, + { text: 'クイックスタート', link: '/ja/guides/quick-start.md' }, + { text: 'Bot との協働', link: '/ja/guides/working-with-bots.md' }, + { text: 'セッション', link: '/ja/guides/sessions.md' }, + { text: 'ファイル', link: '/ja/guides/files.md' }, + { text: 'スラッシュコマンド', link: '/ja/guides/slash-commands.md' }, + { text: 'デスクトップアプリ', link: '/ja/self-hosted/desktop.md' }, + { + text: 'チャネル', + collapsed: true, + items: [ + { text: '総覧', link: '/ja/integrations/channels/' }, + { text: 'Slack', link: '/ja/integrations/channels/slack.md' }, + { text: 'Telegram', link: '/ja/integrations/channels/telegram.md' }, + { text: 'Feishu (Lark)', link: '/ja/integrations/channels/feishu.md' }, + { text: 'Discord', link: '/ja/integrations/channels/discord.md' }, + { text: 'QQ', link: '/ja/integrations/channels/qq.md' }, + { text: 'LINE', link: '/ja/integrations/channels/line.md' }, + { text: 'DingTalk', link: '/ja/integrations/channels/dingtalk.md' }, + { text: 'WeCom', link: '/ja/integrations/channels/wecom.md' }, + { text: 'WeChat', link: '/ja/integrations/channels/weixin.md' }, + ], + }, + ], + }, + { + text: '高度な機能', + items: [ + { text: '拡張機能の選び方', link: '/ja/guides/extensions.md' }, + { text: 'Agents / ACP', link: '/ja/guides/acp.md' }, + { text: '承認と信頼', link: '/ja/guides/approvals.md' }, + { text: 'アクセス制御', link: '/ja/guides/access.md' }, + { text: 'ワークスペース', link: '/ja/guides/container.md' }, + { text: 'Browser / Computer Use', link: '/ja/guides/browser-computer-use.md' }, + { text: 'スキル', link: '/ja/guides/skills.md' }, + { text: 'マーケットプレイス', link: '/ja/guides/supermarket.md' }, + { text: 'Hooks', link: '/ja/guides/hooks.md' }, + { text: 'MCP', link: '/ja/guides/mcp.md' }, + { text: '長期メモリ', link: '/ja/guides/memory.md' }, + { text: 'コンテキスト圧縮', link: '/ja/guides/compaction.md' }, + { text: 'スケジュールタスク', link: '/ja/guides/schedule.md' }, + { text: 'モデルプロバイダー', link: '/ja/integrations/providers/llm.md' }, + { text: 'ウェブ検索プロバイダー', link: '/ja/integrations/providers/web-search.md' }, + { text: '動画プロバイダー', link: '/ja/integrations/providers/video.md' }, + { text: 'メモリ', link: '/ja/integrations/providers/memory/builtin.md' }, + ], + }, + { + text: 'セルフホスト', + items: [ + { text: '概要', link: '/ja/self-hosted/' }, + { text: 'Server Deploy', link: '/ja/self-hosted/docker.md' }, + { text: 'Workspace バックエンド', link: '/ja/self-hosted/workspace-backends.md' }, + { text: 'コネクター(Connect-It)', link: '/ja/self-hosted/connectors.md' }, + ], + }, +] + +export const ja = { + '/ja/guides/': references, + '/ja/integrations/': references, + '/ja/self-hosted/': references, +} diff --git a/docs/.vitepress/ru.ts b/docs/.vitepress/ru.ts new file mode 100644 index 0000000..01c12af --- /dev/null +++ b/docs/.vitepress/ru.ts @@ -0,0 +1,73 @@ +const references = [ + { + text: 'Справочник', + items: [ + { text: 'Обзор', link: '/ru/guides/' }, + ], + }, + { + text: 'Начало работы', + items: [ + { text: 'Обзор', link: '/ru/guides/overview.md' }, + { text: 'Быстрый старт', link: '/ru/guides/quick-start.md' }, + { text: 'Работа с Bot', link: '/ru/guides/working-with-bots.md' }, + { text: 'Сессии', link: '/ru/guides/sessions.md' }, + { text: 'Файлы', link: '/ru/guides/files.md' }, + { text: 'Слэш-команды', link: '/ru/guides/slash-commands.md' }, + { text: 'Настольное приложение', link: '/ru/self-hosted/desktop.md' }, + { + text: 'Каналы', + collapsed: true, + items: [ + { text: 'Обзор', link: '/ru/integrations/channels/' }, + { text: 'Slack', link: '/ru/integrations/channels/slack.md' }, + { text: 'Telegram', link: '/ru/integrations/channels/telegram.md' }, + { text: 'Feishu (Lark)', link: '/ru/integrations/channels/feishu.md' }, + { text: 'Discord', link: '/ru/integrations/channels/discord.md' }, + { text: 'QQ', link: '/ru/integrations/channels/qq.md' }, + { text: 'LINE', link: '/ru/integrations/channels/line.md' }, + { text: 'DingTalk', link: '/ru/integrations/channels/dingtalk.md' }, + { text: 'WeCom', link: '/ru/integrations/channels/wecom.md' }, + { text: 'WeChat', link: '/ru/integrations/channels/weixin.md' }, + ], + }, + ], + }, + { + text: 'Продвинутые возможности', + items: [ + { text: 'Выбор расширения', link: '/ru/guides/extensions.md' }, + { text: 'Agents / ACP', link: '/ru/guides/acp.md' }, + { text: 'Подтверждения и доверие', link: '/ru/guides/approvals.md' }, + { text: 'Контроль доступа', link: '/ru/guides/access.md' }, + { text: 'Рабочее пространство', link: '/ru/guides/container.md' }, + { text: 'Browser / Computer Use', link: '/ru/guides/browser-computer-use.md' }, + { text: 'Навыки', link: '/ru/guides/skills.md' }, + { text: 'Supermarket', link: '/ru/guides/supermarket.md' }, + { text: 'Hooks', link: '/ru/guides/hooks.md' }, + { text: 'MCP', link: '/ru/guides/mcp.md' }, + { text: 'Долговременная память', link: '/ru/guides/memory.md' }, + { text: 'Сжатие контекста', link: '/ru/guides/compaction.md' }, + { text: 'Задачи по расписанию', link: '/ru/guides/schedule.md' }, + { text: 'Провайдеры моделей', link: '/ru/integrations/providers/llm.md' }, + { text: 'Провайдеры веб-поиска', link: '/ru/integrations/providers/web-search.md' }, + { text: 'Провайдеры видео', link: '/ru/integrations/providers/video.md' }, + { text: 'Память', link: '/ru/integrations/providers/memory/builtin.md' }, + ], + }, + { + text: 'Развёртывание', + items: [ + { text: 'Обзор', link: '/ru/self-hosted/' }, + { text: 'Server Deploy', link: '/ru/self-hosted/docker.md' }, + { text: 'Бэкенды рабочих пространств', link: '/ru/self-hosted/workspace-backends.md' }, + { text: 'Коннекторы (Connect-It)', link: '/ru/self-hosted/connectors.md' }, + ], + }, +] + +export const ru = { + '/ru/guides/': references, + '/ru/integrations/': references, + '/ru/self-hosted/': references, +} diff --git a/docs/.vitepress/theme/components/DocsHome.vue b/docs/.vitepress/theme/components/DocsHome.vue index 806c5f8..9536e78 100644 --- a/docs/.vitepress/theme/components/DocsHome.vue +++ b/docs/.vitepress/theme/components/DocsHome.vue @@ -2,12 +2,84 @@ import { computed } from 'vue' const props = defineProps<{ - locale?: 'en' | 'zh' + locale?: 'en' | 'zh' | 'ja' | 'ru' }>() const isZh = computed(() => props.locale === 'zh') +const isJa = computed(() => props.locale === 'ja') +const isRu = computed(() => props.locale === 'ru') const copy = computed(() => { + if (isRu.value) { + return { + sections: [ + { + tone: 'guide', + icon: 'rocket', + title: 'Быстрый старт', + text: 'Установите приложение, войдите, создайте первого Bot, дайте ему настоящую задачу и подключите чат-платформу.', + href: '/ru/guides/quick-start', + }, + { + tone: 'guide', + icon: 'book', + title: 'Продвинутые возможности', + text: 'Продвинутые возможности, автоматизация и внешние провайдеры — агенты, Hooks, долговременная память и не только.', + href: '/ru/guides/', + }, + { + tone: 'integration', + icon: 'plug', + title: 'Развёртывание', + text: 'Запустите Memoh на своём сервере: Server Deploy, бэкенды рабочих пространств, коннекторы.', + href: '/ru/self-hosted/', + }, + { + tone: 'hosted', + icon: 'server', + title: 'Центр помощи', + text: 'Вопросы о планах, оплате и аккаунте, а также прямая связь с командой Memoh.', + href: 'https://memoh.ai/help', + }, + ], + } + } + + if (isJa.value) { + return { + sections: [ + { + tone: 'guide', + icon: 'rocket', + title: 'クイックスタート', + text: 'アプリをインストールしてサインインし、最初の Bot を作成。実際のタスクを任せ、チャットプラットフォームにつなぎます。', + href: '/ja/guides/quick-start', + }, + { + tone: 'guide', + icon: 'book', + title: '高度な機能', + text: '高度な機能・自動化・外部プロバイダー——エージェント、Hooks、長期メモリなど。', + href: '/ja/guides/', + }, + { + tone: 'integration', + icon: 'plug', + title: 'セルフホスト', + text: '自分のサーバーで Memoh を動かす:Server Deploy、Workspace バックエンド、コネクター。', + href: '/ja/self-hosted/', + }, + { + tone: 'hosted', + icon: 'server', + title: 'ヘルプセンター', + text: 'プラン・請求・アカウントの質問、そして Memoh チームへの連絡窓口。', + href: 'https://memoh.ai/help', + }, + ], + } + } + if (isZh.value) { return { sections: [ @@ -28,9 +100,9 @@ const copy = computed(() => { { tone: 'integration', icon: 'plug', - title: '使用场景', - text: '组合多种功能解决实际问题的即用型示例。', - href: '/zh/guides/use-cases', + title: '自部署', + text: '在自己的服务器上运行 Memoh:Server Deploy、Workspace 后端与连接器。', + href: '/zh/self-hosted/', }, { tone: 'hosted', @@ -62,9 +134,9 @@ const copy = computed(() => { { tone: 'integration', icon: 'plug', - title: 'Use Cases', - text: 'Ready-to-follow scenarios that combine features to solve real problems.', - href: '/guides/use-cases', + title: 'Deployment', + text: 'Run Memoh on your own server: Server Deploy, workspace backends, and connectors.', + href: '/self-hosted/', }, { tone: 'hosted', @@ -79,7 +151,7 @@ const copy = computed(() => {