From 014dd2e6fc588d7183c424088e7984f461e9d288 Mon Sep 17 00:00:00 2001 From: kurihada Date: Thu, 18 Dec 2025 00:32:24 +0800 Subject: [PATCH] =?UTF-8?q?feat(website):=20=E6=89=A9=E5=B1=95=20Header=20?= =?UTF-8?q?=E5=AF=BC=E8=88=AA=E5=B9=B6=E6=B7=BB=E5=8A=A0=E7=A4=BA=E4=BE=8B?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 首页和文档页添加文档下拉菜单,快速访问各文档分类 - 新增"示例"导航链接 - 创建 examples.astro 示例页面,展示 6 种使用场景 - 移动端菜单同步更新 --- packages/website/src/layouts/DocsLayout.astro | 20 +- packages/website/src/pages/examples.astro | 294 ++++++++++++++++++ packages/website/src/pages/index.astro | 32 +- 3 files changed, 343 insertions(+), 3 deletions(-) create mode 100644 packages/website/src/pages/examples.astro diff --git a/packages/website/src/layouts/DocsLayout.astro b/packages/website/src/layouts/DocsLayout.astro index 89db2df..fce5c02 100644 --- a/packages/website/src/layouts/DocsLayout.astro +++ b/packages/website/src/layouts/DocsLayout.astro @@ -52,7 +52,25 @@ const canonicalURL = Astro.site ? new URL(Astro.url.pathname, Astro.site) : Astr
首页 - 文档 + +
+ + +
+ 示例 + +
+ 示例 + + + + + GitHub + + + + + + +
+
+ + 使用示例 + +

+ 看看 AI 能做什么 +

+

+ 通过这些示例了解 AI Terminal Assistant 的各种使用场景, + 从简单问答到复杂的代码操作。 +

+
+
+ + +
+
+
+ {examples.map((example) => ( +
+ +
+
+ {example.icon} +
+

{example.title}

+

{example.description}

+
+
+
+ + +
+ +
+
+ You +

{example.input}

+
+
+ + +
+
+ AI +
{example.output}
+
+
+
+
+ ))} +
+
+
+ + +
+
+

准备好开始了吗?

+

+ 按照快速开始指南,几分钟内搭建你的 AI 编程助手。 +

+ +
+
+ + + + diff --git a/packages/website/src/pages/index.astro b/packages/website/src/pages/index.astro index de2aa0d..29e3459 100644 --- a/packages/website/src/pages/index.astro +++ b/packages/website/src/pages/index.astro @@ -81,7 +81,25 @@ const stats = [