📝 优化文档显示

This commit is contained in:
远野千束 2024-08-30 15:09:17 +08:00
parent efbf0731c9
commit 9f1baf448c
6 changed files with 22 additions and 5 deletions

View File

@ -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'

View File

@ -12,6 +12,10 @@ export const en = defineConfig({
footer: {
message: 'Documentation built with <a href="https://vitepress.dev/">VitePress</a> | API references generated by <a href="https://github.com/LiteyukiStudio/litedoc">litedoc</a>',
copyright: 'Copyright (C) 2020-2024 SnowyKami. All Rights Reserved'
},
outline: {
label: "On this page",
level: [2, 6]
}
},
})

View File

@ -12,6 +12,10 @@ export const ja = defineConfig({
footer: {
message: '<a href="https://vitepress.dev/">VitePress</a> で構築されたドキュメント | <a href="https://github.com/LiteyukiStudio/litedoc">litedoc</a> によって生成されたAPIリファレンス',
copyright: 'Copyright (C) 2020-2024 SnowyKami. All Rights Reserved'
},
outline: {
label: "このページについて",
level: [2, 6]
}
},
})

View File

@ -12,6 +12,10 @@ export const zh = defineConfig({
footer: {
message: '文档由 <a href="https://vitepress.dev/">VitePress</a> 构建 | API引用由 <a href="https://github.com/LiteyukiStudio/litedoc">litedoc</a> 生成',
copyright: 'Copyright (C) 2020-2024 SnowyKami. All Rights Reserved'
},
outline: {
label: "页面内容",
level: [2, 6]
}
},
})

View File

@ -13,6 +13,10 @@ export const zht = defineConfig({
footer: {
message: '文檔由 <a href="https://vitepress.dev/">VitePress</a> 構建 | API引用由 <a href="https://github.com/LiteyukiStudio/litedoc">litedoc</a> 生成',
copyright: 'Copyright (C) 2020-2024 SnowyKami. All Rights Reserved'
},
outline: {
label: "頁面內容",
level: [2, 6]
}
},
})

View File

@ -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
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