112 lines
3.5 KiB
TypeScript
112 lines
3.5 KiB
TypeScript
import { defineConfig } from 'vitepress'
|
|
|
|
// https://vitepress.dev/reference/site-config
|
|
export default defineConfig({
|
|
title: "RW-API_Code",
|
|
description: "Easy Code",
|
|
cleanUrls: true,
|
|
themeConfig: {
|
|
// https://vitepress.dev/reference/default-theme-config
|
|
nav: [
|
|
{ text: '主页', link: '/' },
|
|
{ text: '单位API', link: '/src/Unit/core' },
|
|
{ text: '地图API', link: '/src/Map/teada' },
|
|
{ text: '调试API', link: '/src/Debug/test' },
|
|
{ text: '编写指南', link: '/api-dev' },
|
|
{ text: 'RW-Engine指南', link: '/src/RW-Engine/quick-start' },
|
|
{ text: '感谢名单', link: '/cos' }
|
|
],
|
|
|
|
docFooter: {
|
|
prev: "上一篇文章",
|
|
next: "下一篇文章",
|
|
},
|
|
|
|
sidebar: [
|
|
{
|
|
text: 'RW-API-Code',
|
|
items: [
|
|
{ text: '主页-Home', link: '/' },
|
|
{ text: '-------------------------', link: '' },
|
|
{ text: '[API-单位组-Unit]', link: '' },
|
|
{ text: '核心-CORE', link: '/src/Unit/core' },
|
|
{ text: '可建造-CANBUILD', link: '/src/Unit/canbuild' },
|
|
{ text: '附属-ATTACHMENT', link: '/src/Unit/attachment' },
|
|
{ text: '图像-GRAPHICS', link: '/src/Unit/graphics' },
|
|
{ text: '炮塔-TURRET', link: '/src/Unit/turret' },
|
|
{ text: '攻击-ATTACK', link: '/src/Unit/attack' },
|
|
{ text: '运动-MOVEMENT', link: '/src/Unit/movement' },
|
|
{ text: '逻辑-LOGIC', link: '/src/Unit/loginboolean' },
|
|
{ text: '刷兵/刷单位-SPAWN', link: '/src/Unit/spawnunit_spawnprojectile' },
|
|
{ text: '-------------------------', link: '' },
|
|
]
|
|
}
|
|
],
|
|
|
|
socialLinks: [
|
|
{ icon: 'github', link: 'https://github.com/LingASDJ/RW-API-Code/' }
|
|
],
|
|
|
|
footer: {
|
|
message: "Rosy-Code Ling Web Stuido",
|
|
copyright: "Copyright © 2023-RW-API-Code",
|
|
},
|
|
|
|
search: {
|
|
provider: 'local',
|
|
options: {
|
|
locales: {
|
|
zh: {
|
|
translations: {
|
|
button: {
|
|
buttonText: '搜索文档',
|
|
buttonAriaLabel: '搜索文档',
|
|
|
|
},
|
|
modal: {
|
|
noResultsText: '你干嘛~哎呦~无法找到相关结果',
|
|
resetButtonTitle: '清除查询条件',
|
|
footer: {
|
|
selectText: '选择',
|
|
navigateText: '切换',
|
|
closeText: '关闭',
|
|
closeKeyAriaLabel: '关闭',
|
|
selectKeyAriaLabel: '选择',
|
|
navigateUpKeyAriaLabel: '上一个',
|
|
navigateDownKeyAriaLabel: '下一个'
|
|
},
|
|
backButtonTitle: '返回上一级',
|
|
displayDetails: '显示详情'
|
|
|
|
}
|
|
}
|
|
}
|
|
},
|
|
translations: {
|
|
button: {
|
|
buttonText: '搜索文档',
|
|
buttonAriaLabel: '搜索文档',
|
|
|
|
},
|
|
modal: {
|
|
noResultsText: '无法找到相关结果',
|
|
resetButtonTitle: '清除查询条件',
|
|
footer: {
|
|
selectText: '选择',
|
|
navigateText: '切换',
|
|
closeText: '关闭',
|
|
closeKeyAriaLabel: '关闭',
|
|
selectKeyAriaLabel: '选择',
|
|
navigateUpKeyAriaLabel: '上一个',
|
|
navigateDownKeyAriaLabel: '下一个'
|
|
},
|
|
backButtonTitle: '返回上一级',
|
|
displayDetails: '显示详情'
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|