mirror of
https://github.com/snowykami/mbcp.git
synced 2025-08-03 04:00:00 +00:00
📝 测试文档部署
This commit is contained in:
13
docs/.vitepress/config/common.ts
Normal file
13
docs/.vitepress/config/common.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import {defineConfig, type DefaultTheme} from 'vitepress'
|
||||
|
||||
export const common = defineConfig({
|
||||
title: "MBCP docs",
|
||||
description: "MBCP library docs",
|
||||
themeConfig: {
|
||||
// https://vitepress.dev/reference/default-theme-config
|
||||
socialLinks: [
|
||||
{icon: 'github', link: 'https://github.com/snowykami/mbcp'}
|
||||
]
|
||||
},
|
||||
srcDir: '.'
|
||||
})
|
10
docs/.vitepress/config/en.ts
Normal file
10
docs/.vitepress/config/en.ts
Normal file
@ -0,0 +1,10 @@
|
||||
import {defineConfig, type DefaultTheme} from 'vitepress'
|
||||
|
||||
export const en = defineConfig({
|
||||
|
||||
lang: "en-US",
|
||||
description: "A library made for Minecraft particle generation",
|
||||
|
||||
themeConfig: {
|
||||
},
|
||||
})
|
15
docs/.vitepress/config/index.ts
Normal file
15
docs/.vitepress/config/index.ts
Normal file
@ -0,0 +1,15 @@
|
||||
import {defineConfig} from "vitepress";
|
||||
|
||||
import {common} from './common'
|
||||
import {en} from './en'
|
||||
import {zh} from './zh'
|
||||
|
||||
|
||||
|
||||
export default defineConfig({
|
||||
...common,
|
||||
locales:{
|
||||
root: { label: "简体中文", ...zh },
|
||||
en: { label: "English", ...en }
|
||||
}
|
||||
})
|
10
docs/.vitepress/config/zh.ts
Normal file
10
docs/.vitepress/config/zh.ts
Normal file
@ -0,0 +1,10 @@
|
||||
import {defineConfig, type DefaultTheme} from 'vitepress'
|
||||
|
||||
export const zh = defineConfig({
|
||||
|
||||
lang: "zh-Hans",
|
||||
description: "一个用于Minecraft粒子计算和生成的库",
|
||||
|
||||
themeConfig: {
|
||||
},
|
||||
})
|
Reference in New Issue
Block a user