blog/.vitepress/config.mjs

35 lines
803 B
JavaScript
Raw Normal View History

2024-12-17 01:27:47 +08:00
import { defineConfig } from 'vitepress'
// https://vitepress.dev/reference/site-config
export default defineConfig({
lang: "zh-CN",
title: "胖叔笔记",
description: "就是一个写代码的",
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: '家', link: '/' },
{ text: '例子', link: '/markdown-examples' }
],
sidebar: [
// {
// text: 'Examples',
// items: [
// { text: 'Markdown Examples', link: '/markdown-examples' },
// { text: 'Runtime API Examples', link: '/api-examples' }
// ]
// }
],
socialLinks: [
{ icon: 'github', link: 'https://github.com/vuejs/vitepress' }
],
markdown: {
toc: {
level: [1,2,3]
}
}
}
})