From 9f1baf448ca3dbbb89d9763e461b6982dabdfe5a Mon Sep 17 00:00:00 2001 From: snowykami Date: Fri, 30 Aug 2024 15:09:17 +0800 Subject: [PATCH] =?UTF-8?q?:memo:=20=E4=BC=98=E5=8C=96=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/config/common.ts | 2 +- docs/.vitepress/config/en.ts | 4 ++++ docs/.vitepress/config/ja.ts | 4 ++++ docs/.vitepress/config/zh.ts | 4 ++++ docs/.vitepress/config/zht.ts | 4 ++++ mkdoc.bat | 9 +++++---- 6 files changed, 22 insertions(+), 5 deletions(-) diff --git a/docs/.vitepress/config/common.ts b/docs/.vitepress/config/common.ts index eb5c263..e31531d 100644 --- a/docs/.vitepress/config/common.ts +++ b/docs/.vitepress/config/common.ts @@ -52,7 +52,7 @@ export const common = defineConfig({ editLink: { pattern: 'https://github.com/snowykami/mbcp/tree/main/docs/:path' }, - aside: true , + outline: [2, 6] }, sitemap: { hostname: 'https://mbcp.sfkm.me' diff --git a/docs/.vitepress/config/en.ts b/docs/.vitepress/config/en.ts index 449a8c8..7068daf 100644 --- a/docs/.vitepress/config/en.ts +++ b/docs/.vitepress/config/en.ts @@ -12,6 +12,10 @@ export const en = defineConfig({ footer: { message: 'Documentation built with VitePress | API references generated by litedoc', copyright: 'Copyright (C) 2020-2024 SnowyKami. All Rights Reserved' + }, + outline: { + label: "On this page", + level: [2, 6] } }, }) \ No newline at end of file diff --git a/docs/.vitepress/config/ja.ts b/docs/.vitepress/config/ja.ts index 6a2c6b6..a8ad029 100644 --- a/docs/.vitepress/config/ja.ts +++ b/docs/.vitepress/config/ja.ts @@ -12,6 +12,10 @@ export const ja = defineConfig({ footer: { message: 'VitePress で構築されたドキュメント | litedoc によって生成されたAPIリファレンス', copyright: 'Copyright (C) 2020-2024 SnowyKami. All Rights Reserved' + }, + outline: { + label: "このページについて", + level: [2, 6] } }, }) \ No newline at end of file diff --git a/docs/.vitepress/config/zh.ts b/docs/.vitepress/config/zh.ts index ed48488..8953293 100644 --- a/docs/.vitepress/config/zh.ts +++ b/docs/.vitepress/config/zh.ts @@ -12,6 +12,10 @@ export const zh = defineConfig({ footer: { message: '文档由 VitePress 构建 | API引用由 litedoc 生成', copyright: 'Copyright (C) 2020-2024 SnowyKami. All Rights Reserved' + }, + outline: { + label: "页面内容", + level: [2, 6] } }, }) \ No newline at end of file diff --git a/docs/.vitepress/config/zht.ts b/docs/.vitepress/config/zht.ts index 11da194..a9d4338 100644 --- a/docs/.vitepress/config/zht.ts +++ b/docs/.vitepress/config/zht.ts @@ -13,6 +13,10 @@ export const zht = defineConfig({ footer: { message: '文檔由 VitePress 構建 | API引用由 litedoc 生成', copyright: 'Copyright (C) 2020-2024 SnowyKami. All Rights Reserved' + }, + outline: { + label: "頁面內容", + level: [2, 6] } }, }) \ No newline at end of file diff --git a/mkdoc.bat b/mkdoc.bat index 8c233eb..bbf1216 100644 --- a/mkdoc.bat +++ b/mkdoc.bat @@ -1,4 +1,5 @@ -python -m litedoc mbcp -o docs/zh/api -l zh-Hans -f editLink=false -python -m litedoc mbcp -o docs/en/api -l en -f editLink=false -python -m litedoc mbcp -o docs/ja/api -l ja -f editLink=false -python -m litedoc mbcp -o docs/zht/api -l zh-Hant -f editLink=false \ No newline at end of file +chcp 65001 +python -m litedoc mbcp -o docs/zh/api -l zh-Hans -f editLink=false -cd class -fd def -md def -vd var +python -m litedoc mbcp -o docs/en/api -l en -f editLink=false -cd class -fd def -md def -vd var +python -m litedoc mbcp -o docs/ja/api -l ja -f editLink=false -cd class -fd def -md def -vd var +python -m litedoc mbcp -o docs/zht/api -l zh-Hant -f editLink=false -cd class -fd def -md def -vd var \ No newline at end of file