1
0
mirror of synced 2026-05-20 17:28:31 +08:00
Files
cook/docs/.vitepress/config/index.ts
YunYouJun d3b933cca5 feat: 重构为 monorepo 结构,新增 cook CLI 和 types 共享包
- 将 scripts/ 迁移至 packages/cook CLI 工具(飞书 fetch、CSV convert、单元测试)
- 新增 packages/types 共享类型包,抽取 app/types 类型定义
- 更新依赖(nuxt 4.4、vite 8、eslint 10.1 等)
- 新增 vitest coverage 配置
- 更新文档和配置(CLAUDE.md、.env.example、pnpm-workspace)
2026-03-25 02:11:31 +08:00

43 lines
949 B
TypeScript

import { getVitepressConfig } from '@yunyoujun/docs'
import { defineConfig } from 'vitepress'
const vpConfig = getVitepressConfig({
repo: 'https://github.com/YunYouJun/cook',
})
export default defineConfig({
...vpConfig,
title: 'Cook',
description: '食用手册',
themeConfig: {
...vpConfig.themeConfig,
nav: [
{ text: '使用指南', link: '/guide/getting-started' },
{ text: '开发文档', link: '/dev/cli' },
{ text: '应用', link: 'https://cook.yunyoujun.cn' },
],
sidebar: {
'/guide/': [
{
text: '使用指南',
items: [
{ text: '快速开始', link: '/guide/getting-started' },
],
},
],
'/dev/': [
{
text: '开发文档',
items: [
{ text: 'Cook CLI', link: '/dev/cli' },
{ text: '移动应用', link: '/dev/app' },
],
},
],
},
},
})