From ebcdffade0df3badb50810de31c4184b7ecc2fd1 Mon Sep 17 00:00:00 2001 From: Snowykami Date: Sun, 15 Dec 2024 22:56:41 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E6=B7=BB=E5=8A=A0=E6=97=A5?= =?UTF-8?q?=E8=AF=AD=E6=94=AF=E6=8C=81=EF=BC=8C=E6=9B=B4=E6=96=B0=E5=A4=9A?= =?UTF-8?q?=E8=AF=AD=E8=A8=80=E5=AF=BC=E8=88=AA=E5=92=8C=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/config/en.ts | 5 +++++ docs/.vitepress/config/index.ts | 2 ++ docs/.vitepress/config/ja.ts | 24 ++++++++++++++++++++++++ docs/.vitepress/config/zh.ts | 9 +++++++++ docs/en/index.md | 8 ++++---- docs/ja/index.md | 28 ++++++++++++++++++++++++++++ docs/zh/dev/extension.md | 2 +- docs/zh/index.md | 4 ++-- 8 files changed, 75 insertions(+), 7 deletions(-) create mode 100644 docs/ja/index.md diff --git a/docs/.vitepress/config/en.ts b/docs/.vitepress/config/en.ts index a3d4869d..600498be 100755 --- a/docs/.vitepress/config/en.ts +++ b/docs/.vitepress/config/en.ts @@ -9,6 +9,11 @@ export const en = defineConfig({ prev: 'Prev', next: 'Next' }, + nav: [ + {text: 'Home', link: '/en'}, + {text: 'Usage', link: '/en/start/install'}, + {text: 'Develop', link: '/en/dev/extension'}, + ], langMenuLabel: 'Language', returnToTopLabel: 'To top', sidebarMenuLabel: 'Option', diff --git a/docs/.vitepress/config/index.ts b/docs/.vitepress/config/index.ts index 7b93b090..ca4a88cf 100755 --- a/docs/.vitepress/config/index.ts +++ b/docs/.vitepress/config/index.ts @@ -1,6 +1,7 @@ import { defineConfig } from 'vitepress' import { zh } from './zh' import { en } from './en' +import { ja } from './ja' import { defaultLang, generateSidebarConfig, gitea } from './common' import { generateSidebar } from 'vitepress-sidebar' @@ -33,5 +34,6 @@ export default defineConfig({ locales: { root: { label: "简体中文", ...zh }, en: { label: "English", ...en }, + ja: { label: "日本語", ...ja }, }, }) diff --git a/docs/.vitepress/config/ja.ts b/docs/.vitepress/config/ja.ts index e69de29b..9e6e4755 100755 --- a/docs/.vitepress/config/ja.ts +++ b/docs/.vitepress/config/ja.ts @@ -0,0 +1,24 @@ +import {defineConfig} from 'vitepress' + +export const ja = defineConfig({ + lang: "ja-JP", + title: "Marsho AI", + description: "かわいくて、賢くて、拡張しやすい", + themeConfig: { + docFooter: { + prev: '前へ', + next: '次へ' + }, + nav: [ + {text: 'ホーム', link: '/ja'}, + {text: '使用方法', link: '/ja/start/install'}, + {text: '開発', link: '/ja/dev/extension'}, + ], + langMenuLabel: '言語', + returnToTopLabel: 'トップへ戻る', + sidebarMenuLabel: 'オプション', + darkModeSwitchLabel: 'テーマ', + lightModeSwitchTitle: 'ライト', + darkModeSwitchTitle: 'ダーク', + }, +}) \ No newline at end of file diff --git a/docs/.vitepress/config/zh.ts b/docs/.vitepress/config/zh.ts index 50183ecb..896cb4ab 100755 --- a/docs/.vitepress/config/zh.ts +++ b/docs/.vitepress/config/zh.ts @@ -9,11 +9,20 @@ export const zh = defineConfig({ prev: '上一页', next: '下一页' }, + nav: [ + {text: '家', link: '/'}, + {text: '使用', link: '/start/install'}, + {text: '开发', link: '/dev/extension'}, + ], langMenuLabel: '语言', returnToTopLabel: '返回顶部', sidebarMenuLabel: '菜单', darkModeSwitchLabel: '主题', lightModeSwitchTitle: '轻色模式', darkModeSwitchTitle: '深色模式', + footer: { + message: "文档完善中,欢迎提出建议或帮助我们完善。", + copyright: '© 2024 Liteyuki Studio', + } }, }) \ No newline at end of file diff --git a/docs/en/index.md b/docs/en/index.md index 90dabc2b..d3639b17 100755 --- a/docs/en/index.md +++ b/docs/en/index.md @@ -9,13 +9,13 @@ hero: actions: - theme: brand text: Start - link: /start + link: /en/start/install/ - theme: alt text: Develop & Extened - link: /dev + link: /en/dev/extension/ image: - light: ./marsho-full.svg - dark: ./marsho-full.svg + light: /marsho-full.svg + dark: /marsho-full.svg alt: Marsho Logo features: diff --git a/docs/ja/index.md b/docs/ja/index.md new file mode 100644 index 00000000..729dd53a --- /dev/null +++ b/docs/ja/index.md @@ -0,0 +1,28 @@ +--- +# https://vitepress.dev/reference/default-theme-home-page +layout: home + +hero: + name: "小綿智能" + text: "猫娘ロボット" + tagline: かわいくて、賢くて、拡張可能なAIサービスプラグイン + actions: + - theme: brand + text: 始める + link: /ja/start/install/ + - theme: alt + text: 開発と拡張 + link: /ja/dev/extension/ + image: + light: /marsho-full.svg + dark: /marsho-full.svg + alt: Marshoロゴ + +features: + - title: 強力なドライバー + details: NoneBot2に基づいており、既存のNoneBot2またはLiteyukiインスタンスに迅速にインストールできます + - title: インターフェース規格 + details: どんなオープンAI標準に従うインターフェースでも小綿智能と対話できます + - title: 簡単に拡張 + details: Pythonでツールやプラグインを作成し、関数呼び出しを実現し、小綿智能の機能を簡単に拡張できます +--- \ No newline at end of file diff --git a/docs/zh/dev/extension.md b/docs/zh/dev/extension.md index ba255dde..79b97a66 100755 --- a/docs/zh/dev/extension.md +++ b/docs/zh/dev/extension.md @@ -83,7 +83,7 @@ def execute_command(command: str) -> str: ## 依赖注入 -function call支持NoneBot2原生的会话上下文依赖注入,例如Bot、Event等,只需要在函数的参数中声明即可,无需在装饰器中声明。 +function call支持NoneBot2原生的会话上下文依赖注入,例如Bot、Event等 ```python @on_function_call(description="获取个人信息") diff --git a/docs/zh/index.md b/docs/zh/index.md index 17c0bc21..c2773b22 100755 --- a/docs/zh/index.md +++ b/docs/zh/index.md @@ -14,8 +14,8 @@ hero: text: 开发及扩展 link: /dev/extension/ image: - light: ./marsho-full.svg - dark: ./marsho-full.svg + light: /marsho-full.svg + dark: /marsho-full.svg alt: Marsho Logo features: