docs: 尝试修复 docs 的位置

This commit is contained in:
claude-code-best 2026-04-01 10:09:00 +08:00
parent b32dd4549d
commit 604110272f
6 changed files with 101 additions and 86 deletions

4
docs/favicon.svg Normal file
View File

@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="none">
<circle cx="16" cy="16" r="14" fill="#D97706"/>
<path d="M12 10l10 6-10 6V10z" fill="#FFFFFF"/>
</svg>

After

Width:  |  Height:  |  Size: 180 B

5
docs/logo/dark.svg Normal file
View File

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 28" fill="none">
<circle cx="14" cy="14" r="11" stroke="#F59E0B" stroke-width="2" fill="none"/>
<path d="M11 10l6 4-6 4V10z" fill="#F59E0B"/>
<text x="30" y="19.5" font-family="system-ui, -apple-system, sans-serif" font-size="15" font-weight="700" letter-spacing="1" fill="#F1F5F9">CCB</text>
</svg>

After

Width:  |  Height:  |  Size: 362 B

5
docs/logo/light.svg Normal file
View File

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 28" fill="none">
<circle cx="14" cy="14" r="11" stroke="#D97706" stroke-width="2" fill="none"/>
<path d="M11 10l6 4-6 4V10z" fill="#D97706"/>
<text x="30" y="19.5" font-family="system-ui, -apple-system, sans-serif" font-size="15" font-weight="700" letter-spacing="1" fill="#0F172A">CCB</text>
</svg>

After

Width:  |  Height:  |  Size: 362 B

View File

@ -1,84 +0,0 @@
{
"$schema": "https://mintlify.com/schema.json",
"name": "Claude Code Architecture",
"logo": {
"dark": "/logo/dark.svg",
"light": "/logo/light.svg"
},
"favicon": "/favicon.svg",
"colors": {
"primary": "#D97706",
"light": "#F59E0B",
"dark": "#B45309",
"background": {
"dark": "#0F172A",
"light": "#FFFFFF"
}
},
"navigation": [
{
"group": "开始",
"pages": [
"introduction/what-is-claude-code",
"introduction/why-this-whitepaper",
"introduction/architecture-overview"
]
},
{
"group": "对话是如何运转的",
"pages": [
"conversation/the-loop",
"conversation/streaming",
"conversation/multi-turn"
]
},
{
"group": "工具AI 的双手",
"pages": [
"tools/what-are-tools",
"tools/file-operations",
"tools/shell-execution",
"tools/search-and-navigation",
"tools/task-management"
]
},
{
"group": "安全与权限",
"pages": [
"safety/why-safety-matters",
"safety/permission-model",
"safety/sandbox",
"safety/plan-mode"
]
},
{
"group": "上下文工程",
"pages": [
"context/system-prompt",
"context/project-memory",
"context/compaction",
"context/token-budget"
]
},
{
"group": "多 Agent 协作",
"pages": [
"agent/sub-agents",
"agent/worktree-isolation",
"agent/coordinator-and-swarm"
]
},
{
"group": "可扩展性",
"pages": [
"extensibility/mcp-protocol",
"extensibility/hooks",
"extensibility/skills",
"extensibility/custom-agents"
]
}
],
"footerSocials": {
"github": "https://github.com/anthropics/claude-code"
}
}

84
mint.json Normal file
View File

@ -0,0 +1,84 @@
{
"$schema": "https://mintlify.com/schema.json",
"name": "Claude Code Architecture",
"logo": {
"dark": "/docs/logo/dark.svg",
"light": "/docs/logo/light.svg"
},
"favicon": "/docs/favicon.svg",
"colors": {
"primary": "#D97706",
"light": "#F59E0B",
"dark": "#B45309",
"background": {
"dark": "#0F172A",
"light": "#FFFFFF"
}
},
"navigation": [
{
"group": "开始",
"pages": [
"docs/introduction/what-is-claude-code",
"docs/introduction/why-this-whitepaper",
"docs/introduction/architecture-overview"
]
},
{
"group": "对话是如何运转的",
"pages": [
"docs/conversation/the-loop",
"docs/conversation/streaming",
"docs/conversation/multi-turn"
]
},
{
"group": "工具AI 的双手",
"pages": [
"docs/tools/what-are-tools",
"docs/tools/file-operations",
"docs/tools/shell-execution",
"docs/tools/search-and-navigation",
"docs/tools/task-management"
]
},
{
"group": "安全与权限",
"pages": [
"docs/safety/why-safety-matters",
"docs/safety/permission-model",
"docs/safety/sandbox",
"docs/safety/plan-mode"
]
},
{
"group": "上下文工程",
"pages": [
"docs/context/system-prompt",
"docs/context/project-memory",
"docs/context/compaction",
"docs/context/token-budget"
]
},
{
"group": "多 Agent 协作",
"pages": [
"docs/agent/sub-agents",
"docs/agent/worktree-isolation",
"docs/agent/coordinator-and-swarm"
]
},
{
"group": "可扩展性",
"pages": [
"docs/extensibility/mcp-protocol",
"docs/extensibility/hooks",
"docs/extensibility/skills",
"docs/extensibility/custom-agents"
]
}
],
"footerSocials": {
"github": "https://github.com/anthropics/claude-code"
}
}

View File

@ -1,6 +1,6 @@
{
"name": "claude-js",
"version": "1.0.1",
"version": "1.0.2",
"description": "Reverse-engineered Anthropic Claude Code CLI — interactive AI coding assistant in the terminal",
"type": "module",
"author": "claude-code-best <claude-code-best@proton.me>",
@ -44,7 +44,8 @@
"prepare": "git config core.hooksPath .githooks",
"test": "bun test",
"check:unused": "knip-bun",
"health": "bun run scripts/health-check.ts"
"health": "bun run scripts/health-check.ts",
"docs:dev": "npx mintlify dev"
},
"dependencies": {},
"devDependencies": {