From 14b72dcb7bba2678698fe069900e124f5e5fe54e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=94=A1=E6=B5=A9=E6=B6=B5?= Date: Sun, 11 Jan 2026 14:57:58 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=A7=BB=E9=99=A4=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E8=AF=A6=E6=83=85=E9=A1=B5=E7=A1=AC=E7=BC=96=E7=A0=81?= =?UTF-8?q?=E7=9A=84=E5=AE=89=E8=A3=85=E6=8C=87=E5=8D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除了对所有带 GitHub 链接项目自动显示的通用安装命令(npm install), 现在安装说明应通过项目的 Markdown 内容字段自定义,更加灵活。 --- src/components/project/ProjectDetail.tsx | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/components/project/ProjectDetail.tsx b/src/components/project/ProjectDetail.tsx index 299c781..b7a6105 100644 --- a/src/components/project/ProjectDetail.tsx +++ b/src/components/project/ProjectDetail.tsx @@ -118,21 +118,6 @@ export async function ProjectDetail({ project, locale }: ProjectDetailProps) { {/* Full content with Markdown rendering */} {displayContent && } - - {/* Installation section if GitHub link exists */} - {project.links.some((l) => l.type === 'GITHUB') && ( - <> -

{t('gettingStarted')}

-

{t('installInstructions')}

-
-              {`git clone ${
-                project.links.find((l) => l.type === 'GITHUB')?.url || 'https://github.com/example/project'
-              }
-cd ${project.slug}
-npm install`}
-            
- - )} {/* Share and Feedback Section - Temporarily disabled for debugging */}