Commit 5cd9d2e
committed
refactor(docs): Option C IA 大重组 — 按读者意图分 learn/career/community/projects 四大区
Admin 反馈"目录结构要重新设计,很多内容过时"。经 owner 拍板选方案 C(按
读者意图分类),全站 docs 在本 PR 内一次到位,避免分多个 PR 把 contributors
的 review 路径切碎。
# 顶层结构(Before → After)
- ai/ → learn/ai/ (AI 学科知识)
- computer-science/ → learn/cs/ (CS 基础 + 系统)
- jobs/interview-prep/ → career/interview-prep/ (刷题 BQ OA VI)
- jobs/event-keynote/ → career/events/ (Coffee Chat / Mock Interview)
- CommunityShare/Leetcode/ → career/interview-prep/leetcode/ (50+ 题解归求职刷题)
- CommunityShare/Amazing-AI-Tools/perplexity-comet → community/tools/ (工具推荐)
- CommunityShare/Amazing-AI-Tools/prompt-repetition → community/papers/ (论文摘要)
- CommunityShare/Geek/leworldmodel → community/papers/ (JEPA paper)
- CommunityShare/Geek/*(其他) → community/dev-tips/ (开发技巧)
- CommunityShare/Language/ → community/language/
- CommunityShare/Life/ → community/life/
- CommunityShare/MentalHealth/ → community/mental-health/
- CommunityShare/Personal-Study-Notes/Reinforcement-Learning/ppo
→ learn/ai/reinforcement-learning/ppo
- all-projects/ + ai/projects/ → projects/(项目文档顶层化)
# 变更清单
1. 新增 4 个顶层区 index.mdx (learn / career / community 原有 / projects)
加上 SectionIndex 作为品类着陆页
2. 31 条 301 redirects(statusCode:301),覆盖所有老 URL
- 特殊文件级(RAG / leworldmodel / perplexity-comet / prompt-repetition /
ppo / swanlab / cpp_backend 老名字 / all-projects/ai-town 等)排前
- Wildcard 顶层区(/docs/ai/:path* / /docs/computer-science/:path* /
/docs/jobs/{interview-prep,event-keynote}/:path* / /docs/all-projects/:path* /
CommunityShare/{Leetcode,Language,Life,MentalHealth,Geek,Amazing-AI-Tools}/:path*)
排后做兜底
3. Hard-coded URL 修正:Hero.tsx / Footer.tsx / layout.tsx / source.ts /
SectionIndex.tsx / [...slug]/page.tsx 注释 / dev_docs/umami_tracking.md
4. data/event.json 三条 playback URL + coffee-chat.md 内链域名统一成
involutionhell.com + 路径指向新位置
5. SectionIndex root props 更新:
- community/index.mdx: root="community"
- career/interview-prep/leetcode/index.mdx: root="career/interview-prep/leetcode"
6. lib/source.ts pinyin transformer 前缀匹配更新
# docId 守恒
所有 289 个 .mdx/.md 文件的 docId 原样保留,sync-uuid workflow 合 main
后 backfill 按 docId 聚合,老贡献者 contributions 不变,longsizhuo 本轮
rename commit 在每个涉及的 docId 上 +1。
# reviewer subagent 审后修正
reviewer 审出 3 条 P0 死链 + 4 条 P1 index 缺失 + 3 条 P2 陈旧注释,全部
采纳并修完:
- P0 Footer /docs/career 404 → 新建 career/index.mdx
- P0 event.json playback 旧路径 → sed 批量替换
- P0 coffee-chat 内链 vercel.app + 旧路径 → 统一 involutionhell.com + 新路径
- P1 learn/ 和 projects/ 无 index → 新建 index.mdx
- P1 /docs/all-projects 裸路径无 redirect → 补 redirect 规则
- P2 SectionIndex / page.tsx / [...slug] / umami_tracking 注释旧术语 → sed 更新
# 后续工作
- Leetcode 50+ 题解文件名规范化(走 pinyin 路由,URL 规则特殊)
- frontmatter status 字段(active/deprecated/archived)机制接入
- archive/ 过期内容治理(本 PR 暂未创建目录,等 owner/admin 标记具体哪些过期)1 parent dd7bf83 commit 5cd9d2e
420 files changed
Lines changed: 195 additions & 61 deletions
File tree
- app
- components
- docs
- docs
- [...slug]
- career
- events
- interview-prep
- leetcode
- community
- dev-tips
- CommonUsedMarkdown.assets
- Katex
- language
- life
- mental-health
- papers
- tools
- learn
- ai
- Introduction-of-Multi-agents-system
- MoE
- MOE-intro.assets
- Multi-agents-system-on-Code-Translation
- agents-todo
- cs294-194-196
- ai-math-basics
- calculus-optimization
- information-theory
- linear-algebra
- resources
- numerical-analysis
- probability-statistics
- resources
- compute-platforms
- foundation-models
- datasets
- deploy-infer
- evaluation
- finetune
- qkv-interview
- rag
- training
- generative-todo
- llm-basics
- courses
- cuda
- deep-learning
- d2l
- misc
- nlp
- embeddings
- qwen3-embedding
- pytorch
- index.assets
- transformer
- ai-by-hand
- methodology
- misc-tools
- model-datasets-platforms
- multimodal
- RQVAE
- index.assets
- VAE
- index.assets
- VQVAE
- index.assets
- courses
- llava
- index.assets
- mllm
- qwenvl
- video-mm-todo
- vit
- recommender-systems
- wangshusen_recommend_note
- images
- wangshusen_recommend_note_retrieval.assets
- reinforcement-learning
- cs
- cpp-backend
- easy-compile
- handwritten-pool-components
- data-structures
- array
- linked-list
- frontend
- frontend-learning
- projects
- data
- dev_docs
- lib
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
74 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| |||
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
0 commit comments