From b402c4192478f4562cf0405e90241b41fa16f342 Mon Sep 17 00:00:00 2001 From: neo Date: Sat, 28 Dec 2024 17:26:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=8C=E6=88=90=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E7=BB=93=E6=9E=84=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dumi/theme/builtins/CaskAndFormula.tsx | 4 ++-- .umirc.ts | 12 +++++++++++- docs/{app-detail.md => app/detail.md} | 2 -- docs/{ => app}/homebrew.md | 2 +- 4 files changed, 14 insertions(+), 6 deletions(-) rename docs/{app-detail.md => app/detail.md} (79%) rename docs/{ => app}/homebrew.md (89%) diff --git a/.dumi/theme/builtins/CaskAndFormula.tsx b/.dumi/theme/builtins/CaskAndFormula.tsx index e3b5867..77e0eaf 100644 --- a/.dumi/theme/builtins/CaskAndFormula.tsx +++ b/.dumi/theme/builtins/CaskAndFormula.tsx @@ -79,11 +79,11 @@ const CaskAndFormula = ({}) => { }; const openCaskDetail = item => { - window.open('/app-detail?cid=' + item.id); + window.open('/app/detail?cid=' + item.id); }; const openFormulaDetail = item => { - window.open('/app-detail?fid=' + item.id); + window.open('/app/detail?fid=' + item.id); }; const onSearch = value => { diff --git a/.umirc.ts b/.umirc.ts index a5ccb1a..e41c88c 100644 --- a/.umirc.ts +++ b/.umirc.ts @@ -44,7 +44,17 @@ export default defineConfig({ title: '快系列-你快了吗', children: ['/install/stable-diffusion-webui', '/install/nvm-for-nodejs', '/install/game-porting-toolkit'], } - ] + ], + '/app': [ + { + title: 'App', + children: ['/app/homebrew'], + }, + { + title: 'Detail', + children: ['/app/detail'], + } + ], }, extraBabelPlugins: [ [ diff --git a/docs/app-detail.md b/docs/app/detail.md similarity index 79% rename from docs/app-detail.md rename to docs/app/detail.md index a84ae67..3f714a3 100644 --- a/docs/app-detail.md +++ b/docs/app/detail.md @@ -1,6 +1,4 @@ --- -nav: - hide: true toc: false sidemenu: false filePath: diff --git a/docs/homebrew.md b/docs/app/homebrew.md similarity index 89% rename from docs/homebrew.md rename to docs/app/homebrew.md index 916163f..7a579e9 100644 --- a/docs/homebrew.md +++ b/docs/app/homebrew.md @@ -1,6 +1,6 @@ --- nav: - title: 应用 + title: 软件 toc: false sidemenu: false filePath: