- 将 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)
43 lines
949 B
TypeScript
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' },
|
|
],
|
|
},
|
|
],
|
|
},
|
|
},
|
|
})
|