Content Mapping — Single Source of Truth
content/ is the sole authoring location. All other content paths are symlinks
(or the mdBook src = "docs" view onto them). Do not author duplicate trees.
Root symlinks → content/
| Path | Target | Purpose |
|---|---|---|
patterns | content/patterns | GoF catalog (23 patterns + depth + category READMEs) |
architecture | content/architecture | Application (6) + System (7) + depth |
principles | content/principles | 110 principles in 11 category files + index |
practice | content/practice | 6 capstones + index |
Verify: ls -la | grep -E "patterns|architecture|practice|principles"
docs/ view (mdBook src = "docs")
| Path | Target | Purpose |
|---|---|---|
docs/patterns | ../content/patterns | mdBook view of pattern catalog |
docs/architecture | ../content/architecture | mdBook view of architecture tutorial |
docs/principles | ../content/principles | mdBook view of principles catalog |
docs/practice | ../content/practice | mdBook view of capstones |
docs/guides | ../guides | mdBook view of guides |
docs/examples | ../examples | mdBook view of runnable examples |
docs/index.md | ../index.md | mdBook home (mirrors root landing) |
Verify: find docs -type l | sort
Canonical places (no full duplication)
- Architecture patterns are canonical in
content/architecture/*. Principles entries that overlap (Hexagonal #23, Clean #24, Onion #25, Event Sourcing #51, CQRS #52) are summaries that link to the canonical architecture page. - Depth content is merged into the standard pages: each pattern and
architecture page now contains its basic recap, complex scenario, edge cases,
and expanded failure-mode guidance. The former
*/depth/*files andDEPTH-TEMPLATE.mdare removed; their content lives in the standard page. - Selection guidance is canonical in
guides/selection.md(three sections: patterns, architecture, principles). Category READMEs link to it; they do not maintain competing decision tables.
Redirect / move policy
- No content deletions without a mapping entry here.
- If a path moves, keep the old symlink until link check (
5.1) is green, then remove it in a follow-up and record the replacement here. - Current moved paths: none pending — this file establishes the baseline.