Files
docs/.vitepress/config.mts
T

46 lines
1.0 KiB
TypeScript
Raw Normal View History

2026-03-16 19:20:34 +08:00
import { defineConfig } from 'vitepress'
import generateSidebarByPath from './sidebar.mts'
import type { SidebarAutoItem } from './sidebar.mts'
const sidebarAuto: SidebarAutoItem[] = [
{
text: 'Kinesin',
path: '/kinesin',
2026-03-29 13:14:49 +08:00
},
2026-04-06 08:54:29 +08:00
{
text: 'Rainbox',
path: '/rainbox',
},
2026-03-29 13:14:49 +08:00
{
text: 'Columba',
path: '/columba',
2026-03-16 19:20:34 +08:00
}
]
const sidebarByPath = generateSidebarByPath(sidebarAuto)
// https://vitepress.dev/reference/site-config
export default defineConfig({
title: 'KeDocs',
description: '代码跃海 世界同潮',
2026-04-04 11:44:05 +08:00
cleanUrls: true,
2026-03-16 19:20:34 +08:00
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
2026-04-06 08:54:29 +08:00
{ text: '隐私协议', link: '/privacy' },
2026-03-16 19:20:34 +08:00
{ 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' }
]
}
})