mirror of
https://github.com/snowykami/mbcp.git
synced 2026-01-25 05:02:15 +00:00
📝 测试文档部署
This commit is contained in:
@@ -1,39 +0,0 @@
|
||||
import { defineConfig } from 'vitepress'
|
||||
|
||||
// https://vitepress.dev/reference/site-config
|
||||
export default defineConfig({
|
||||
title: "MBCP docs",
|
||||
description: "MBCP library docs",
|
||||
locales: {
|
||||
root: {
|
||||
label: '简体中文',
|
||||
lang: 'zh-CN'
|
||||
},
|
||||
en: {
|
||||
label: 'English',
|
||||
lang: 'en-US'
|
||||
}
|
||||
},
|
||||
themeConfig: {
|
||||
// https://vitepress.dev/reference/default-theme-config
|
||||
nav: [
|
||||
{ text: 'Home', link: '/' },
|
||||
{ text: 'Examples', link: '/markdown-examples' }
|
||||
],
|
||||
|
||||
sidebar: [
|
||||
{
|
||||
text: 'Examples',
|
||||
items: [
|
||||
{ text: 'Markdown Examples', link: '/markdown-examples' },
|
||||
{ text: 'Runtime API Examples', link: '/api-examples' }
|
||||
]
|
||||
}
|
||||
],
|
||||
|
||||
socialLinks: [
|
||||
{ icon: 'github', link: 'https://github.com/snowykami/mbcp' }
|
||||
]
|
||||
},
|
||||
srcDir: '.'
|
||||
})
|
||||
@@ -1,8 +1,23 @@
|
||||
import {defineConfig} from 'vitepress'
|
||||
|
||||
import AutoSidebarPlugin from 'vitepress-auto-sidebar-plugin'
|
||||
|
||||
export const common = defineConfig({
|
||||
title: "MBCP docs",
|
||||
description: "MBCP library docs",
|
||||
vite: {
|
||||
plugins: [
|
||||
AutoSidebarPlugin({
|
||||
// 如果不指定 `srcDir`,则默认使用 `vitepress` 的 `srcDir`
|
||||
ignoreList: [
|
||||
'README.md'
|
||||
],
|
||||
title: {
|
||||
mode: text => text.toLowerCase()
|
||||
}
|
||||
}),
|
||||
],
|
||||
},
|
||||
themeConfig: {
|
||||
// https://vitepress.dev/reference/default-theme-config
|
||||
socialLinks: [
|
||||
|
||||
@@ -1,10 +1,21 @@
|
||||
import {defineConfig} from 'vitepress'
|
||||
|
||||
export const zh = defineConfig({
|
||||
|
||||
lang: "zh-Hans",
|
||||
description: "一个用于Minecraft粒子计算和生成的库",
|
||||
|
||||
themeConfig: {
|
||||
nav: [
|
||||
{text: '快速开始', link: '/guide'},
|
||||
{text: 'API文档', link: '/api/'},
|
||||
{text: '实例', link: '/demo/'},
|
||||
],
|
||||
// sidebar: {
|
||||
// '/api/': {
|
||||
// base: '/api/',
|
||||
// items: [
|
||||
// ]
|
||||
// }
|
||||
// }
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user