103 lines
2.3 KiB
TypeScript
103 lines
2.3 KiB
TypeScript
import { defineConfig } from 'vitepress'
|
|
|
|
// https://vitepress.dev/reference/site-config
|
|
export default defineConfig({
|
|
title: "Cxx0822",
|
|
description: "Cxx0822 Blog",
|
|
base: '/blog-press/',
|
|
lang: 'zh-CN',
|
|
locales: {
|
|
"/": {
|
|
label: "简体中文",
|
|
lang: "zh-CN",
|
|
},
|
|
},
|
|
themeConfig: {
|
|
// https://vitepress.dev/reference/default-theme-config
|
|
nav: [
|
|
{ text: 'Home', link: '/' },
|
|
{ text: 'Web', link: '/Web/' },
|
|
{ text: 'DevOps', link: '/DevOps/' },
|
|
{ text: 'SpringBoot', link: '/SpringBoot/' }
|
|
],
|
|
sidebar: {
|
|
'/Web/': [
|
|
{
|
|
text: 'Web',
|
|
items: [
|
|
{ text: 'MySQL知识点', link: '/Web/MySQL-Knowledge' }
|
|
]
|
|
},
|
|
],
|
|
'/DevOps/': [
|
|
{
|
|
text: 'DevOps',
|
|
items: [
|
|
{ text: 'OpenObserve部署和使用', link: '/DevOps/OpenObserve' },
|
|
{ text: 'Jenkins部署和使用', link: '/DevOps/Jenkins' },
|
|
{ text: 'ElasticSearch部署和使用', link: '/DevOps/ElasticSearch' }
|
|
]
|
|
}
|
|
],
|
|
'/SpringBoot/': [
|
|
{
|
|
text: 'SpringBoot',
|
|
items: [
|
|
{ text: 'Spring IOC简介', link: '/SpringBoot/SpringIOC' },
|
|
{ text: 'SpringBoot启动流程', link: '/SpringBoot/SpringBoot-Start-Process' }
|
|
]
|
|
}
|
|
]
|
|
},
|
|
|
|
// socialLinks: [
|
|
// { icon: 'github', link: 'https://github.com/vuejs/vitepress' }
|
|
// ]
|
|
|
|
footer: {
|
|
message: '基于 VitePress 构建',
|
|
copyright: 'Copyright © 2025 Cxx0822'
|
|
},
|
|
|
|
search: {
|
|
provider: 'local',
|
|
options: {
|
|
translations: {
|
|
button: {
|
|
buttonText: '搜索文档',
|
|
buttonAriaLabel: '搜索文档'
|
|
},
|
|
modal: {
|
|
noResultsText: '无法找到相关结果',
|
|
resetButtonTitle: '清除查询条件',
|
|
footer: {
|
|
selectText: '选择',
|
|
navigateText: '切换',
|
|
closeText: '关闭'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
|
|
outline: {
|
|
label: "目录",
|
|
level: [1, 3]
|
|
},
|
|
|
|
returnToTopLabel: "返回顶部",
|
|
|
|
// 上下篇导航
|
|
docFooter: {
|
|
prev: '上一篇',
|
|
next: '下一篇'
|
|
},
|
|
|
|
lastUpdated: {
|
|
text: '最后更新于'
|
|
}
|
|
},
|
|
|
|
lastUpdated: true,
|
|
})
|