mirror of
https://github.com/snowykami/mbcp.git
synced 2025-08-03 04:00:00 +00:00
📝 litedoc新增类继承显示,新增变量自动获取注释,新增类方法和函数的区分,新增魔术方法的特殊展示模式
This commit is contained in:
@ -4,7 +4,11 @@ export const en = defineConfig({
|
||||
|
||||
lang: "en-US",
|
||||
description: "A library made for Minecraft particle generation",
|
||||
|
||||
themeConfig: {
|
||||
nav: [
|
||||
{text: 'Get Start', link: '/guide'},
|
||||
{text: 'API Document', link: '/api/'},
|
||||
{text: 'Demo', link: '/demo/'},
|
||||
],
|
||||
},
|
||||
})
|
@ -3,6 +3,8 @@ import {defineConfig} from "vitepress";
|
||||
import {common} from './common'
|
||||
import {en} from './en'
|
||||
import {zh} from './zh'
|
||||
import {zht} from './zht'
|
||||
import {ja} from './ja'
|
||||
|
||||
|
||||
|
||||
@ -10,6 +12,8 @@ export default defineConfig({
|
||||
...common,
|
||||
locales:{
|
||||
root: { label: "简体中文", ...zh },
|
||||
en: { label: "English", ...en }
|
||||
en: { label: "English", ...en },
|
||||
ja: { label: "日本語", ...ja },
|
||||
zht: { label: "繁體中文", ...zht },
|
||||
}
|
||||
})
|
14
docs/.vitepress/config/ja.ts
Normal file
14
docs/.vitepress/config/ja.ts
Normal file
@ -0,0 +1,14 @@
|
||||
import {defineConfig} from 'vitepress'
|
||||
|
||||
export const ja = defineConfig({
|
||||
|
||||
lang: "ja-JP",
|
||||
description: "Minecraftのパーティクル生成用のライブラリ",
|
||||
themeConfig: {
|
||||
nav: [
|
||||
{text: 'スタート', link: '/guide'},
|
||||
{text: 'APIドキュメント', link: '/api/'},
|
||||
{text: 'インスタンス', link: '/demo/'},
|
||||
],
|
||||
},
|
||||
})
|
@ -1,21 +1,14 @@
|
||||
import {defineConfig} from 'vitepress'
|
||||
|
||||
export const zh = defineConfig({
|
||||
|
||||
lang: "zh-Hans",
|
||||
description: "一个用于Minecraft粒子计算和生成的库",
|
||||
|
||||
themeConfig: {
|
||||
nav: [
|
||||
{text: '快速开始', link: '/guide'},
|
||||
{text: '快速开始', link: '/guide/'},
|
||||
{text: 'API文档', link: '/api/'},
|
||||
{text: '实例', link: '/demo/'},
|
||||
],
|
||||
// sidebar: {
|
||||
// '/api/': {
|
||||
// base: '/api/',
|
||||
// items: [
|
||||
// ]
|
||||
// }
|
||||
// }
|
||||
},
|
||||
})
|
14
docs/.vitepress/config/zht.ts
Normal file
14
docs/.vitepress/config/zht.ts
Normal file
@ -0,0 +1,14 @@
|
||||
import {defineConfig} from 'vitepress'
|
||||
|
||||
export const zht = defineConfig({
|
||||
|
||||
lang: "zh-Hant",
|
||||
description: "一個用於Minecraft粒子計算和生成的軟體庫",
|
||||
themeConfig: {
|
||||
nav: [
|
||||
{text: '指引', link: '/guide/'},
|
||||
{text: 'API文檔', link: '/api/'},
|
||||
{text: '示範', link: '/demo/'},
|
||||
],
|
||||
},
|
||||
})
|
Reference in New Issue
Block a user