0
0
mirror of https://github.com/Pumpkin-MC/Pumpkin-Website.git synced 2025-07-05 17:34:26 +00:00
Files
Pumpkin-Website/docs/.vitepress/zh_cn.ts
2025-07-01 19:56:46 +02:00

129 lines
4.9 KiB
TypeScript

import { defineConfig } from "vitepress";
export const zhCN = defineConfig({
lang: "zh-CN",
description: "一款用 Rust 编写的高性能 Minecraft 服务器软件",
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
search: {
provider: "local",
},
nav: [
{
text: "文档",
link: "/zh_cn/about/introduction",
},
],
sidebar: [
{
text: "关于",
items: [
{ text: "介绍", link: "/zh_cn/about/introduction" },
{ text: "快速开始", link: "/zh_cn/about/quick-start" },
{ text: "性能基准", link: "/zh_cn/about/benchmarks" },
],
},
{
text: "配置",
items: [
{ text: "介绍", link: "/zh_cn/config/introduction" },
{ text: "基础配置", link: "/zh_cn/config/basic" },
{ text: "代理", link: "/zh_cn/config/proxy" },
{ text: "身份验证", link: "/zh_cn/config/authentication" },
{ text: "压缩", link: "/zh_cn/config/compression" },
{ text: "资源包", link: "/zh_cn/config/resource-pack" },
{ text: "命令", link: "/zh_cn/config/commands" },
{ text: "RCON", link: "/zh_cn/config/rcon" },
{ text: "PVP", link: "/zh_cn/config/pvp" },
{ text: "日志", link: "/zh_cn/config/logging" },
{ text: "查询", link: "/zh_cn/config/query" },
{ text: "局域网广播", link: "/zh_cn/config/lan-broadcast" },
],
},
{
text: "开发者",
items: [
{ text: "贡献指南", link: "/zh_cn/developer/contributing" },
{ text: "介绍", link: "/zh_cn/developer/introduction" },
{
text: "网络",
link: "/zh_cn/developer/networking/networking",
items: [
{
text: "身份验证",
link: "/zh_cn/developer/networking/authentication",
},
{
text: "RCON",
link: "/zh_cn/developer/networking/rcon",
},
],
},
{ text: "世界", link: "/zh_cn/developer/world" },
{ text: "移动端开发", link: "/zh_cn/developer/mobile" },
],
},
{
text: "插件开发",
items: [
{
text: "介绍",
link: "/zh_cn/plugin-dev/introduction",
},
{
text: "插件模板",
link: "/zh_cn/plugin-dev/plugin-template/introduction",
items: [
{
text: "创建项目",
link: "/zh_cn/plugin-dev/plugin-template/creating-project",
},
{
text: "基础逻辑",
link: "/zh_cn/plugin-dev/plugin-template/basic-logic",
},
{
text: "加入事件",
link: "/zh_cn/plugin-dev/plugin-template/join-event",
},
],
},
],
},
{
text: "故障排除",
items: [
{
text: "常见问题",
link: "/zh_cn/troubleshooting/common_issues.md",
},
],
},
],
socialLinks: [
{ icon: "github", link: "https://github.com/Pumpkin-MC/Pumpkin" },
{ icon: "discord", link: "https://discord.gg/RNm224ZsDq" },
],
logo: "/assets/favicon.ico",
footer: {
message: "基于 MIT 许可证发布。",
copyright: `版权所有 © 2024-${new Date().getFullYear()} Aleksandr Medvedev`,
},
editLink: {
pattern:
"https://github.com/Pumpkin-MC/Pumpkin-Website/blob/master/docs/:path",
text: "在 GitHub 上编辑此页面",
},
lastUpdated: {
text: "更新于",
formatOptions: {
dateStyle: "medium",
timeStyle: "medium",
},
},
outline: "deep",
}
});