Skip to content

fix(docs-site): rewrite relative links in local synced files (fixes docs deploy on main) - #182

Merged
afeezorobsco-cyber merged 1 commit into
mainfrom
fix/docs-local-relative-links
Oct 20, 2026
Merged

afeezorobsco-cyber merged 1 commit into
mainfrom
fix/docs-local-relative-links

Conversation

@afeezorobsco-cyber

Copy link
Copy Markdown
Contributor

What changed

docs/site/scripts/sync-docs.mjs: copyLocal() now runs rewriteRelativeLinks(), the same function fetchRemote() already uses, so repo-relative links in docforum-core's own synced files become GitHub URLs. Also adds a ROADMAP changelog line.

Why

#153 added [docs/adr/0006-multiple-referrals-per-consultation.md](docs/adr/...) to ROADMAP.md. The docs sync copies ROADMAP.md to roadmap/core.md verbatim, where that path doesn't exist, so the Deploy docs site workflow on main fails:

(!) Found dead link ./docs/adr/0006-multiple-referrals-per-consultation in file roadmap/core.md
[vitepress] 1 dead link(s) found.

PR CI doesn't build the docs site, which is why #153 was green. Fixing the sync, rather than the one link, means the next contributor who writes a normal relative link won't break the deploy again.

Testing

Ran npm ci && npm run build in docs/site on this branch: the build passes. Stashing the fix and rebuilding reproduces the exact dead-link failure above.

Note (not fixed here)

There are two ADRs numbered 0006: 0006-multiple-referrals-per-consultation.md and 0006-prisma-7-driver-adapter.md. One should be renumbered in a separate change.

Which ROADMAP.md item does this close/progress?

Changelog entry only.

🤖 Generated with Claude Code

#153 added a repo-relative link (docs/adr/0006-...md) to ROADMAP.md. The
docs sync copies ROADMAP.md into the VitePress site verbatim, where that
path has no page, so vitepress build failed its dead-link check and the
docs deploy on main broke. Remote files already get their relative links
rewritten to GitHub URLs; apply the same rewrite to local files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@afeezorobsco-cyber
afeezorobsco-cyber merged commit 6c4b610 into main Oct 20, 2026
2 checks passed
@afeezorobsco-cyber
afeezorobsco-cyber deleted the fix/docs-local-relative-links branch October 20, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant