Commit 507dba6
fix(docs): re-root relative image paths in rendered docs
Rendered AsciiDoc emits relative image paths (e.g.
image::docs/workflow-diagram.svg → <img src="docs/workflow-diagram.svg">).
Doc pages are served under clean URLs like /spec-driven-development/, so the
browser resolves that against the route → /spec-driven-development/docs/...
→ 404; the workflow diagram silently went missing on the Spec-Driven
Development pages (EN + DE). Prefix relative <img> sources with the site
base after loading, matching the asset's real location
(/Semantic-Anchors/docs/...). Absolute, protocol, data and hash URLs are
left untouched.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 457c183 commit 507dba6
2 files changed
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
81 | 93 | | |
82 | 94 | | |
83 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
45 | 63 | | |
0 commit comments