fix(docs): resolve Fern routes in link checker#4688
Conversation
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughDocs link checker now resolves Fern site routes by lazily indexing docs navigation, adds normalization and source-existence helpers, integrates Fern-route checks into local-ref resolution and logging, and adds Vitest tests for successful rewriting and failure modes when routes or the route index are invalid. ChangesFern route link resolution
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Suggested labels
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
E2E Advisor RecommendationRequired E2E: None Dispatch hint: Full advisor summaryE2E Recommendation AdvisorBase: Required E2E
Optional E2E
New E2E recommendations
Dispatch hint
|
E2E Scenario Advisor RecommendationRequired scenario E2E: None Full scenario advisor summaryE2E Scenario AdvisorBase: Required scenario E2E
Optional scenario E2E
Relevant changed files
|
PR Review AdvisorFindings: 0 needs attention, 0 worth checking, 0 nice ideas This is an automated advisory review. A human maintainer must make the final merge decision. |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@test/e2e/e2e-cloud-experimental/check-docs.sh`:
- Around line 837-851: The alias logic currently only handles wildcard paths and
misses bare variant roots and their user-guide equivalents; update the candidate
generation (using the candidates array and the route variable in the case/if
block) to also map bare "openclaw" and "hermes" to their variant home (append
"user-guide/openclaw/home" and "user-guide/hermes/home"), and likewise map
"user-guide/openclaw" and "user-guide/hermes" to "user-guide/<variant>/home" so
routes contributed by docs/index.yml (which use ".../home") are recognized.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: d7604b0b-1be5-4507-a131-37adbdca4c0c
📒 Files selected for processing (2)
test/check-docs-links.test.tstest/e2e/e2e-cloud-experimental/check-docs.sh
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
|
Addressed feedback in 3bd5a5a:
Validation rerun:
|
Summary
Update the docs link checker so it validates Fern-style routes instead of treating extensionless MDX and variant-navigation links as broken filesystem paths. This fixes docs-validation failures after the Fern migration while keeping local link validation active.
Changes
docs/index.ymlduringcheck-docs.shlink validation..md/.mdxlinks, route-relative Fern links, and OpenClaw/Hermes variant routes.Type of Change
Verification
npx prek run --all-filespassesnpm testpassesnpm run docsbuilds without warnings (doc changes only)Signed-off-by: Carlos Villela cvillela@nvidia.com
Summary by CodeRabbit
Tests
Chores