Repository navigation
fix: build apiDocMd / agentDocs README so breadcrumbs resolve (#1324) - #1325
Conversation
…1324) VitePress was excluding **every** README.md via the "**/README.md" glob in srcExclude, but the typedoc-generated pages under apiDocMd/ and agentDocs/ contain breadcrumb links pointing back to their README.md (e.g. apiDocMd/classes/GraphAI.md starts with `[**graphai**](../README.md)`). On the live site those links resolved to 404: - https://graphai.info/apiDocMd/README.html - https://graphai.info/agentDocs/README.html Replace the global wildcard with explicit per-file excludes so the two auto-generated index READMEs do build, while keeping the dev-only ones (docs/README.md, docs/examples/tutorial/README.md) out of the site. Verified by running `yarn build` under docs/: - .vitepress/dist/apiDocMd/README.html created - .vitepress/dist/agentDocs/README.html created - .vitepress/dist/README.html NOT created (still excluded) - .vitepress/dist/examples/tutorial/README.html NOT created (still excluded) Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR fixes 404 errors on ChangesREADME.html Accessibility Fix
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Closes #1324
Summary
Two pages on the live docs site return 404 because VitePress excluded every `README.md` from the build, but the typedoc-generated pages link back to them in their breadcrumb:
(Compare with sibling pages that work: `/apiDocMd/globals.html`, `/agentDocs/llm/groqAgent.html`.)
Items to Confirm / Review
User Prompt
Root cause
`docs/.vitepress/config.mts` had:
```ts
srcExclude: [
...,
"**/README.md", // ← excludes every README.md in the entire tree
...
],
```
But typedoc breadcrumbs at the top of every generated page point back to README.md:
```md
docs/apiDocMd/classes/GraphAI.md
graphai
```
```md
docs/apiDocMd/globals.md
graphai
```
Clicking those breadcrumbs lands on a path that VitePress refused to build, hence the 404s.
Fix
Replace the wildcard with explicit per-file excludes:
```diff
srcExclude: [
...,
...
],
```
Result after `yarn build` under `docs/`:
Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit
Bug Fixes
Documentation