GeWuYou 2670cf564b feat(docs): 迁移文档系统到 VitePress
- 将文档首页从传统 Markdown 格式迁移到 VitePress 首页配置
- 添加 VitePress 主题配置文件和自定义样式
- 配置 Git 忽略文件以排除构建产物和依赖
- 添加 VitePress 构建缓存和依赖预构建文件
- 创建 API 示例页面和导航配置
- 移除旧的 TOC 配置文件并替换为新的路由结构
2026-02-11 12:52:14 +08:00

29 lines
737 B
TypeScript

import { defineConfig } from 'vitepress'
// https://vitepress.dev/reference/site-config
export default defineConfig({
title: "GFramework",
description: "A developer-oriented framework for structured game development",
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: 'Home', link: '/' },
{ text: 'Examples', 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' }
]
}
})