148 lines
3.8 KiB
TypeScript
148 lines
3.8 KiB
TypeScript
import { defineConfig } from 'vitepress'
|
|
|
|
// https://vitepress.dev/reference/site-config
|
|
export default defineConfig({
|
|
title: "拾光记",
|
|
description: "Cxx0822 Blog",
|
|
head: [
|
|
['link', { rel: 'icon', href: '/blog-press/favicon.ico' }]
|
|
],
|
|
base: '/blog-press/',
|
|
lang: 'zh-CN',
|
|
locales: {
|
|
"/": {
|
|
label: "简体中文",
|
|
lang: "zh-CN",
|
|
},
|
|
},
|
|
themeConfig: {
|
|
logo: "/logo.png",
|
|
// https://vitepress.dev/reference/default-theme-config
|
|
nav: [
|
|
{ text: 'Home', link: '/' },
|
|
{ text: 'Web前端', link: '/Web-Front/' },
|
|
{ text: 'Web后端', link: '/Web-Backend/' },
|
|
{ text: 'DevOps', link: '/DevOps/' },
|
|
{ text: 'SpringBoot', link: '/SpringBoot/' },
|
|
{ text: 'FastAPI', link: '/FastAPI/' },
|
|
{ text: 'Flutter', link: '/Flutter/' },
|
|
],
|
|
sidebar: {
|
|
'/Web-Front/': [
|
|
{
|
|
text: 'Web前端',
|
|
items: [
|
|
{ text: 'Vue3-Common', link: '/Web-Front/Vue3-Common' },
|
|
]
|
|
},
|
|
],
|
|
'/Web-Backend/': [
|
|
{
|
|
text: 'Web后端',
|
|
items: [
|
|
{ text: 'MySQL知识点', link: '/Web-Backend/MySQL-Knowledge' },
|
|
{ text: 'Flyway简单使用', link: '/Web-Backend/Flyway' },
|
|
{ text: 'MyBatis简介和使用', link: '/Web-Backend/MyBatis' }
|
|
]
|
|
},
|
|
],
|
|
'/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' },
|
|
{ text: 'Spring MVC简介', link: '/SpringBoot/SpringMVC' },
|
|
{ text: 'SpringBoot Starter原理', link: '/SpringBoot/SpringBootStarter' },
|
|
{ text: 'SpringBoot Bean简介', link: '/SpringBoot/SpringBootBean' },
|
|
{ text: 'SpringBoot3原生镜像', link: '/SpringBoot/SpringBoot3-GraalVM' }
|
|
]
|
|
}
|
|
],
|
|
'/FastAPI/': [
|
|
{
|
|
text: 'FastAPI',
|
|
items: [
|
|
{ text: '基于OAuth2的FastApi安全验证', link: '/FastAPI/OAuth2' }
|
|
]
|
|
}
|
|
],
|
|
'/Flutter/': [
|
|
{
|
|
text: 'Flutter',
|
|
items: [
|
|
{ text: '基础教程', link: '/Flutter/Guide' },
|
|
{ text: '实战技巧', link: '/Flutter/Practice' }
|
|
]
|
|
}
|
|
]
|
|
},
|
|
|
|
// 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: '下一篇'
|
|
},
|
|
|
|
sidebarMenuLabel: '菜单',
|
|
darkModeSwitchLabel: '外观',
|
|
|
|
lastUpdated: {
|
|
text: '最后更新于'
|
|
}
|
|
},
|
|
|
|
lastUpdated: true,
|
|
|
|
markdown: {
|
|
lineNumbers: true
|
|
},
|
|
})
|