删除 android/、ios/ 两个 Capacitor 原生工程与 capacitor.config.ts、 ionic.config.json,以及 scripts/android、scripts/ios.sh 构建脚本; 根与 apps/web 的 @capacitor/* 依赖和相关 npm scripts 一并移除。 Web 侧去掉原生分支:登录只走云乐坊容器授权面板或顶层重定向, 暗色模式不再改原生状态栏,移除 Android 物理返回键处理。 保留 @nuxtjs/ionic(Web UI 框架)、云乐坊 window.ylf 桥接与 PWA。 决策记录见 docs/decisions/0004-web-only.md。
57 lines
1.5 KiB
TypeScript
57 lines
1.5 KiB
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: '/decisions/' },
|
|
{ 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: 'Web 应用', link: '/dev/app' },
|
|
{ text: '菜谱数据', link: '/dev/data' },
|
|
],
|
|
},
|
|
],
|
|
'/decisions/': [
|
|
{
|
|
text: '方案记录',
|
|
items: [
|
|
{ text: '说明', link: '/decisions/' },
|
|
{ text: '0001 菜谱数据', link: '/decisions/0001-recipe-data' },
|
|
{ text: '0002 反馈与固定 id', link: '/decisions/0002-feedback-and-ids' },
|
|
{ text: '0003 原生 iOS 与 monorepo', link: '/decisions/0003-native-ios-monorepo' },
|
|
{ text: '0004 只保留 Web', link: '/decisions/0004-web-only' },
|
|
],
|
|
},
|
|
],
|
|
},
|
|
},
|
|
})
|