Skip to content

Commit 4d4f302

Browse files
committed
feat(implementation): update knowledge architecture section with new titles and content for clarity
1 parent 0d05fcb commit 4d4f302

File tree

3 files changed

+46
-26
lines changed

3 files changed

+46
-26
lines changed

docs/ai-friendly/ai-friendly-platform-engineering.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ export const PlatformEngineering = () => {
699699

700700
<div ref={knowledgeArchRef} className="mt-12">
701701
<div className="section-header">
702-
<h2 className="section-title bg-cyan-600">AI 知识导航的知识系统架构</h2>
702+
<h2 className="section-title bg-cyan-600">面向上下文的知识导航</h2>
703703
<p className="text-slate-600">整合于 IDP 的知识图谱体系,为 AI 编程提供结构化上下文</p>
704704
</div>
705705

src/components/DevKnowledgeArchitecture.jsx

+36-25
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ import {
1818
Component,
1919
Users,
2020
MessageSquare,
21-
ArrowRight
21+
ArrowRight,
22+
HistoryIcon,
23+
CompassIcon,
24+
BrainIcon
2225
} from 'lucide-react'
2326

2427
export const DevKnowledgeArchitecture = () => {
@@ -114,35 +117,43 @@ export const DevKnowledgeArchitecture = () => {
114117
</div>
115118

116119
<div className="bg-blue-50 p-6 rounded-lg">
117-
<h3 className="text-xl font-semibold mb-4 text-center">知识流转与反馈循环</h3>
120+
<h3 className="text-xl font-semibold mb-4 text-center">核心目标</h3>
118121

119-
<div className="relative flex justify-between items-center mb-4 px-12">
120-
<div className="flex flex-col items-center">
121-
<div className="icon-circle bg-blue-600 mb-2">
122-
<Code className="h-5 w-5 text-white" />
123-
</div>
124-
<div className="text-center text-sm font-medium">数据收集</div>
125-
</div>
126-
<ArrowRight className="text-blue-600" size={24} />
127-
<div className="flex flex-col items-center">
128-
<div className="icon-circle bg-green-600 mb-2">
129-
<Database className="h-5 w-5 text-white" />
122+
<div className="grid-3">
123+
<div className="bg-white p-5 rounded-lg shadow">
124+
<div className="flex items-center mb-3">
125+
<div className="icon-circle bg-blue-600 mr-3">
126+
<GitBranch className="h-5 w-5 text-white" />
127+
</div>
128+
<h4 className="font-semibold text-blue-800">可追溯性 (Traceability)</h4>
130129
</div>
131-
<div className="text-center text-sm font-medium">知识处理</div>
130+
<p className="text-slate-600">
131+
能够沿着软件工件(如需求)的生命周期,向前追溯其实现、测试和部署,向后追溯其来源、目标和变更历史
132+
</p>
132133
</div>
133-
<ArrowRight className="text-blue-600" size={24} />
134-
<div className="flex flex-col items-center">
135-
<div className="icon-circle bg-purple-600 mb-2">
136-
<Search className="h-5 w-5 text-white" />
134+
135+
<div className="bg-white p-5 rounded-lg shadow">
136+
<div className="flex items-center mb-3">
137+
<div className="icon-circle bg-green-600 mr-3">
138+
<Search className="h-5 w-5 text-white" />
139+
</div>
140+
<h4 className="font-semibold text-green-800">可发现性 (Discoverability)</h4>
137141
</div>
138-
<div className="text-center text-sm font-medium">知识访问</div>
142+
<p className="text-slate-600">
143+
帮助开发者快速找到所需的相关信息、代码片段、文档、甚至领域专家,即使这些信息分散在不同的工具、代码库或团队中
144+
</p>
139145
</div>
140-
<ArrowRight className="text-blue-600" size={24} />
141-
<div className="flex flex-col items-center">
142-
<div className="icon-circle bg-indigo-600 mb-2">
143-
<MessageSquare className="h-5 w-5 text-white" />
146+
147+
<div className="bg-white p-5 rounded-lg shadow">
148+
<div className="flex items-center mb-3">
149+
<div className="icon-circle bg-purple-600 mr-3">
150+
<Network className="h-5 w-5 text-white" />
151+
</div>
152+
<h4 className="font-semibold text-purple-800">可理解性 (Understanding)</h4>
144153
</div>
145-
<div className="text-center text-sm font-medium">用户反馈</div>
154+
<p className="text-slate-600">
155+
促进开发者深入理解工件背后的上下文、依赖关系、设计原理以及它们之间相互连接的原因
156+
</p>
146157
</div>
147158
</div>
148159

@@ -163,4 +174,4 @@ export const DevKnowledgeArchitecture = () => {
163174
</div>
164175
</div>
165176
)
166-
}
177+
}

src/css/custom.css

+9
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,15 @@ button {
523523
color: #475569;
524524
}
525525

526+
.mt-6 {
527+
margin-top: 1.5rem;
528+
}
529+
530+
.bg-cyan-50 {
531+
--tw-bg-opacity: 1;
532+
background-color: rgb(224 243 250 / var(--tw-bg-opacity, 1));
533+
}
534+
526535
.border-indigo-100 {
527536
--tw-border-opacity: 1;
528537
border-color: rgb(99 102 241 / var(--tw-border-opacity, 1));

0 commit comments

Comments
 (0)