120 lines
2.3 KiB
TypeScript
120 lines
2.3 KiB
TypeScript
import { defineConfig } from 'vitepress'
|
|
|
|
export default defineConfig({
|
|
title: "乌仿镇",
|
|
description: "技术分享笔记",
|
|
lang: 'zh-CN',
|
|
vite: {
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
target: 'https://openlist.wufangzhen.com',
|
|
changeOrigin: true,
|
|
secure: false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
sitemap: {
|
|
hostname: 'https://wufangzhen.com'
|
|
},
|
|
themeConfig: {
|
|
outline: {
|
|
level: [2, 3],
|
|
label: '目录'
|
|
},
|
|
docFooter: {
|
|
prev: '上一页',
|
|
next: '下一页'
|
|
},
|
|
lastUpdated: {
|
|
text: '最后更新于',
|
|
formatOptions: {
|
|
dateStyle: 'short',
|
|
timeStyle: 'short'
|
|
}
|
|
},
|
|
sidebar: {
|
|
'/java/': [
|
|
{
|
|
'text': 'Java 笔记',
|
|
'items': [
|
|
{
|
|
'text': '概述',
|
|
'link': '/java/'
|
|
},
|
|
{
|
|
'text': 'Java基础语法',
|
|
'link': '/java/basic'
|
|
},
|
|
{
|
|
'text': '集合框架',
|
|
'link': '/java/collection'
|
|
},
|
|
{
|
|
'text': '面向对象编程',
|
|
'link': '/java/oop'
|
|
},
|
|
{
|
|
'text': '多线程编程',
|
|
'link': '/java/thread'
|
|
}
|
|
]
|
|
}
|
|
],
|
|
'/vue/': [
|
|
{
|
|
'text': 'Vue 笔记',
|
|
'items': [
|
|
{
|
|
'text': '概述',
|
|
'link': '/vue/'
|
|
},
|
|
{
|
|
'text': 'Vue3基础',
|
|
'link': '/vue/basic'
|
|
},
|
|
{
|
|
'text': '组件开发',
|
|
'link': '/vue/component'
|
|
},
|
|
{
|
|
'text': '组合式API',
|
|
'link': '/vue/composition'
|
|
},
|
|
{
|
|
'text': '状态管理',
|
|
'link': '/vue/pinia'
|
|
}
|
|
]
|
|
}
|
|
],
|
|
'/杂谈/': [
|
|
{
|
|
'text': '杂谈 笔记',
|
|
'items': [
|
|
{
|
|
'text': '概述',
|
|
'link': '/杂谈/'
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
nav: [
|
|
{
|
|
'text': 'Java',
|
|
'link': '/java/'
|
|
},
|
|
{
|
|
'text': 'Vue',
|
|
'link': '/vue/'
|
|
},
|
|
{
|
|
'text': '杂谈',
|
|
'link': '/杂谈/'
|
|
}
|
|
]
|
|
}
|
|
})
|