Skip to content

Commit e60edda

Browse files
committed
添加 GitHub 仓库信息到主页视图
1 parent 4a02162 commit e60edda

2 files changed

Lines changed: 53 additions & 0 deletions

File tree

docs/web/app/_components/home-page-view.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,24 @@ export function HomePageView({ locale }: { locale: Locale }) {
3535
</ul>
3636
</section>
3737

38+
<section className="section-card">
39+
<h2 className="section-title">{copy.repositoryTitle}</h2>
40+
<p>{copy.repositoryDescription}</p>
41+
<div className="two-column-grid">
42+
{copy.repositories.map((repository) => (
43+
<article className="docs-section-card" key={repository.href}>
44+
<h2>{repository.name}</h2>
45+
<p>{repository.summary}</p>
46+
<div className="link-row">
47+
<Link className="button-link" href={repository.href} target="_blank" rel="noreferrer">
48+
{copy.openRepository}
49+
</Link>
50+
</div>
51+
</article>
52+
))}
53+
</div>
54+
</section>
55+
3856
<section className="docs-section-grid">
3957
{sections.map((section) => (
4058
<article className="docs-section-card" key={section.id}>

docs/web/app/lib/site-copy.ts

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ type HomeCopy = {
2424
actions: Array<{ href: string; label: string }>;
2525
startTitle: string;
2626
startItems: string[];
27+
repositoryTitle: string;
28+
repositoryDescription: string;
29+
repositories: Array<{ name: string; href: string; summary: string }>;
30+
openRepository: string;
2731
openSection: string;
2832
};
2933

@@ -73,6 +77,22 @@ export const homeCopy: Record<Locale, HomeCopy> = {
7377
"Use the guide pages when building servers, clients, auth, tasks, and transport deployments.",
7478
"Use the reference pages for exact protocol behavior, capability status, benchmarks, and migration planning.",
7579
],
80+
repositoryTitle: "GitHub repositories",
81+
repositoryDescription:
82+
"The public source of truth lives in two repositories: the docs and protocol repository, and the Python SDK repository.",
83+
repositories: [
84+
{
85+
name: "FishCodeTech/zero-context-protocol",
86+
href: "https://github.com/FishCodeTech/zero-context-protocol",
87+
summary: "Docs site, protocol specification, capability matrix, benchmark presentation, and deployment assets.",
88+
},
89+
{
90+
name: "FishCodeTech/zero-context-protocol-python",
91+
href: "https://github.com/FishCodeTech/zero-context-protocol-python",
92+
summary: "Python SDK, runtime, examples, compatibility surfaces, tests, and benchmark harness.",
93+
},
94+
],
95+
openRepository: "Open GitHub",
7696
openSection: "Open section",
7797
},
7898
zh: {
@@ -90,6 +110,21 @@ export const homeCopy: Record<Locale, HomeCopy> = {
90110
"构建 server、client、auth、tasks 和 transport 部署时,优先看 guides。",
91111
"需要严格行为定义、能力现状、基准和迁移说明时,使用 reference 页面。",
92112
],
113+
repositoryTitle: "GitHub 仓库",
114+
repositoryDescription: "公开源码分成两个仓库:一个放协议与文档站,一个放 Python SDK 与运行时实现。",
115+
repositories: [
116+
{
117+
name: "FishCodeTech/zero-context-protocol",
118+
href: "https://github.com/FishCodeTech/zero-context-protocol",
119+
summary: "文档站、协议说明、能力矩阵、基准展示和部署资产。",
120+
},
121+
{
122+
name: "FishCodeTech/zero-context-protocol-python",
123+
href: "https://github.com/FishCodeTech/zero-context-protocol-python",
124+
summary: "Python SDK、运行时、示例、兼容层、测试和基准脚手架。",
125+
},
126+
],
127+
openRepository: "打开 GitHub",
93128
openSection: "进入分区",
94129
},
95130
};

0 commit comments

Comments
 (0)