mirror of
https://github.com/ZiuChen/ZiuChen.github.io.git
synced 2025-08-17 23:19:55 +08:00
82 lines
1.9 KiB
TypeScript
82 lines
1.9 KiB
TypeScript
import { defineConfig } from 'vitepress'
|
|
import generateSideBar from './scripts/generateSideBar'
|
|
import { projects, works, notes, JUEJIN } from './const'
|
|
|
|
export default defineConfig({
|
|
title: 'ZiuChen',
|
|
description: 'Unlimited Progress.',
|
|
ignoreDeadLinks: true,
|
|
lastUpdated: true,
|
|
head: [['link', { rel: 'icon', href: '/logo.png' }]],
|
|
markdown: {
|
|
lineNumbers: true
|
|
},
|
|
themeConfig: {
|
|
logo: '/logo.png',
|
|
nav: [
|
|
{ text: '首页', link: '/' },
|
|
{
|
|
text: '我的项目',
|
|
items: projects
|
|
},
|
|
{
|
|
text: '开源作品',
|
|
items: works
|
|
},
|
|
{
|
|
text: '学习笔记',
|
|
items: notes
|
|
},
|
|
{
|
|
text: '个人介绍',
|
|
link: '/self/'
|
|
}
|
|
],
|
|
sidebar: [
|
|
{
|
|
text: '我的项目',
|
|
items: projects
|
|
},
|
|
{
|
|
text: '开源作品',
|
|
collapsed: true,
|
|
items: works
|
|
},
|
|
{
|
|
text: '文章归档',
|
|
collapsed: true,
|
|
items: [...generateSideBar()]
|
|
},
|
|
{
|
|
text: '学习笔记',
|
|
collapsed: true,
|
|
items: notes
|
|
}
|
|
],
|
|
socialLinks: [
|
|
{ icon: 'github', link: 'https://github.com/ZiuChen' },
|
|
{
|
|
icon: { svg: JUEJIN },
|
|
link: 'https://juejin.cn/user/1887205216238477'
|
|
}
|
|
],
|
|
editLink: {
|
|
pattern: 'https://github.com/ZiuChen/ZiuChen.github.io/edit/main/docs/:path',
|
|
text: 'Edit this page on GitHub'
|
|
},
|
|
footer: {
|
|
message: 'Released under the MIT License.',
|
|
copyright: 'Copyright © 2019-present Ziu Chen'
|
|
},
|
|
lastUpdatedText: 'Updated Date',
|
|
search: {
|
|
provider: 'algolia',
|
|
options: {
|
|
appId: 'LFZ2CPWWUG',
|
|
apiKey: 'b4fd296ea5e467b3ac4a582160ff3122',
|
|
indexName: 'ziuchenio'
|
|
}
|
|
}
|
|
}
|
|
})
|