Skip to content

Commit 0d4cd43

Browse files
committed
chore(vitepress): exclude AI agent docs from site build
- Add srcExclude pattern in docs/.vitepress/config.mts - Exclude **/AGENTS.md from VitePress build - Exclude **/CLAUDE.md from VitePress build - Prevents AI agent knowledge base from appearing on public website - Update .gitignore - Add .claude/ directory exclusion - Ensure AI agent configuration files remain private Impact: AGENTS.md and CLAUDE.md files remain in repository for AI agent use but are no longer built into HTML and exposed on the website. Build verification: npm run build passed, no AGENTS.html in dist/
1 parent 1dc3615 commit 0d4cd43

2 files changed

Lines changed: 19 additions & 5 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ docs/.vitepress/cache/
1111

1212
# Spec workflow
1313
.spec-workflow/
14+
.serena/
1415

1516
# Backup
1617
.backup/
@@ -20,7 +21,7 @@ docs/.vitepress/cache/
2021

2122
# Project docs (not part of the site)
2223
PROJECT-COMPLETE-GUIDE.md
23-
CLAUDE.md
24+
CONTENT-PLAN.md
2425

2526
# Environment variables
2627
.env

docs/.vitepress/config.mts

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ export default withMermaid(defineConfig({
1414
// 语言配置
1515
lang: 'zh-CN',
1616

17+
// 排除 AI Agent 专用文档(不构建到网站)
18+
srcExclude: ['**/AGENTS.md', '**/CLAUDE.md'],
19+
1720
// 主题配置
1821
themeConfig: {
1922
// 网站标题
@@ -22,7 +25,7 @@ export default withMermaid(defineConfig({
2225
// 导航菜单
2326
nav: [
2427
{ text: '首页', link: '/' },
25-
{ text: '文章', link: '/posts/2026/' },
28+
{ text: '文章', link: '/posts/agent-basics/2026-02-13-llm-agent-basics' },
2629
{
2730
text: '分类',
2831
items: [
@@ -40,11 +43,21 @@ export default withMermaid(defineConfig({
4043
sidebar: {
4144
'/posts/': [
4245
{
43-
text: '2026 年',
46+
text: 'Agent 基础',
47+
collapsed: false,
48+
items: [
49+
{ text: 'LLM Agent 简介', link: '/posts/agent-basics/2026-02-13-llm-agent-basics' },
50+
{ text: 'Agent 的记忆系统', link: '/posts/agent-basics/2026-02-14-agent-memory-systems' },
51+
{ text: '上下文工程', link: '/posts/agent-basics/2026-02-15-context-engineering' },
52+
{ text: '多 Agent 协作', link: '/posts/agent-basics/2026-02-16-multi-agent-collaboration' },
53+
{ text: 'Agent 评估', link: '/posts/agent-basics/2026-02-17-agent-evaluation' }
54+
]
55+
},
56+
{
57+
text: 'Coding Agent 实践',
4458
collapsed: false,
4559
items: [
46-
{ text: 'LLM Agent 到底是什么?', link: '/posts/2026/2026-02-13-llm-agent-basics' },
47-
{ text: 'Agent Skills 使用入门', link: '/posts/2026/2026-02-10-agent-skills-intro' }
60+
{ text: 'Agent Skills 使用入门', link: '/posts/coding-agent/2026-02-10-agent-skills-intro' }
4861
]
4962
}
5063
],

0 commit comments

Comments
 (0)