70 lines
1.6 KiB
TypeScript
70 lines
1.6 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: '基础语法', link: '/java/basic' },
|
|
{ text: '面向对象', link: '/java/oop' },
|
|
{ text: '集合框架', link: '/java/collection' },
|
|
{ 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' }
|
|
]
|
|
}
|
|
]
|
|
},
|
|
nav: [
|
|
{ text: '首页', link: '/' },
|
|
{ text: 'Java', link: '/java/' },
|
|
{ text: 'Vue', link: '/vue/' }
|
|
]
|
|
}
|
|
})
|