📝 测试文档部署

This commit is contained in:
2024-08-28 11:38:46 +08:00
parent 8ba6ee805a
commit f6e73dd3be
18 changed files with 159 additions and 8 deletions

View 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: '.'
})

View 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: {
},
})

View 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 }
}
})

View File

@ -0,0 +1,10 @@
import {defineConfig, type DefaultTheme} from 'vitepress'
export const zh = defineConfig({
lang: "zh-Hans",
description: "一个用于Minecraft粒子计算和生成的库",
themeConfig: {
},
})