fix(site): rewrite broken README.md and out-of-docs links#2765
Conversation
E2E tests did not runE2E tests run automatically for org/repo members and collaborators on pull requests. For other contributors, a maintainer must add the See E2E testing guide for details. |
PR Summary by QodoFix VitePress markdown link resolution for README.md and out-of-docs paths
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Site previewPreview: https://7386d7a1-site.fullsend-ai.workers.dev Commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Code Review by Qodo
1.
|
Add a markdown-it core rule that: - Rewrites README.md links to directory index paths (README→index rewrite only affects routing, not link resolution) - Converts relative links that escape the docs/ directory into GitHub source URLs, fixing 37 broken links to source code files Also fixes eslint warnings (unnecessary regex escape, any type). Signed-off-by: Juntao Wang <juntwang@redhat.com>
- Check out-of-docs links before README rewrite so ../../README.md gets GitHub-redirected with the filename intact - Remove [^.] guard so .github/ paths are also rewritten to GitHub - README→index rewrite only applies to links staying within docs/ Signed-off-by: Juntao Wang <juntwang@redhat.com>
waynesun09
left a comment
There was a problem hiding this comment.
Minor URL construction suggestions — not blocking.
326fae9 to
60f02c8
Compare
Files (with extensions) use /blob/main/, directories use /tree/main/, matching GitHub's URL convention. Signed-off-by: Juntao Wang <juntwang@redhat.com>
waynesun09
left a comment
There was a problem hiding this comment.
Verified the CI build artifact: zero README.html 404s, blob/tree distinction working correctly for files vs directories, .github/ dotdir links rewriting properly, all internal/scaffold/ source links resolving to GitHub URLs. LGTM.
|
🤖 Finished Retro · ✅ Success · Started 8:43 PM UTC · Completed 8:55 PM UTC |
Retro: PR #2765 — fix(site): rewrite broken README.md and out-of-docs linksWorkflow type: Human-authored PR with no fullsend agent involvement. Timeline:
Assessment: This was a clean, efficient human workflow. No fullsend review, code, or fix agents were dispatched — correctly, since the routing logic doesn't trigger those stages for human PRs on non-agent branches. The human review was effective, catching a real correctness issue (blob vs tree GitHub URLs) that the author addressed. Skipped proposals:
No other improvement opportunities identified. The workflow executed well within expected parameters. |
The link in the org-mode deprecation notice was hardcoded to `../getting-started/` as a workaround for VitePress not resolving README.md links. Now that #2765 adds a markdown-it rewrite rule to handle this automatically, revert to the canonical `README.md` reference. Assisted-by: Claude Signed-off-by: Wayne Sun <gsun@redhat.com>
Summary
README.mdlinks to directory index paths — VitePressrewritesonly affects routing/file output, not link resolution in markdown contentdocs/directory (e.g.../../internal/scaffold/...) into GitHub source URLs (https://github.com/fullsend-ai/fullsend/tree/main/...)README.md404s without modifying any doc contentanytype)Context
After the VitePress migration (#2721), links like
[Default Agents](../../agents/README.md)resolved toREADME.htmlwhich doesn't exist (VitePress outputsindex.html). Links to source files like../../internal/scaffold/fullsend-repo/harness/also 404'd since they're outside the docs directory.Test plan
npm run build && cd website && npm run buildpasses locally/docs/agents/(not 404)github.com/fullsend-ai/fullsend/tree/main/...README.htmlreferences in built output