1
This commit is contained in:
69
docs/.vitepress/config.mts
Normal file
69
docs/.vitepress/config.mts
Normal file
@@ -0,0 +1,69 @@
|
||||
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/' }
|
||||
]
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user