[feat] initialize
This commit is contained in:
35
.vitepress/config.mts
Normal file
35
.vitepress/config.mts
Normal file
@@ -0,0 +1,35 @@
|
||||
import { defineConfig } from 'vitepress'
|
||||
import generateSidebarByPath from './sidebar.mts'
|
||||
import type { SidebarAutoItem } from './sidebar.mts'
|
||||
|
||||
const sidebarAuto: SidebarAutoItem[] = [
|
||||
{
|
||||
text: 'Kinesin',
|
||||
path: '/kinesin',
|
||||
}
|
||||
]
|
||||
|
||||
const sidebarByPath = generateSidebarByPath(sidebarAuto)
|
||||
|
||||
// https://vitepress.dev/reference/site-config
|
||||
export default defineConfig({
|
||||
title: 'KeDocs',
|
||||
description: '代码跃海 世界同潮',
|
||||
themeConfig: {
|
||||
// https://vitepress.dev/reference/default-theme-config
|
||||
nav: [
|
||||
{ text: '知识库', link: 'https://kegongteng.cn' },
|
||||
{ text: '联系', link: 'mailto:i@kegongteng.cn' },
|
||||
],
|
||||
|
||||
logo: {
|
||||
dark: "/avatar-dark.png",
|
||||
light: "/avatar.png",
|
||||
},
|
||||
sidebar: sidebarByPath,
|
||||
|
||||
socialLinks: [
|
||||
{ icon: 'github', link: 'https://github.com/gtxykn0504' }
|
||||
]
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user