Docs: Fix broken links and use relative paths for website docs#2322
Docs: Fix broken links and use relative paths for website docs#2322
Conversation
WalkthroughStandardized documentation links: converted broken relative links (pointing outside deployed docs) to absolute GitHub URLs and converted GitHub URLs to relative paths for docs that live within the deployed Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
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 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 |
Code Review: Documentation Link FixesOverall Assessment ✅This PR successfully addresses the documentation link issues identified in #2317. The changes are well-thought-out and follow a clear, logical strategy: use GitHub URLs for files not deployed to the website, and relative links for files that exist on the website. Strengths 💪
Code Quality ✅All changes are documentation-only with no code modifications:
Verified Link Targets:
Relative Path Analysis 🔍Let me verify the relative paths resolve correctly: From
From
From
From
From
All relative paths are correct! ✅ Potential Concerns
|
Greptile OverviewGreptile SummaryThis PR systematically fixes documentation link issues by applying a clear strategy: use GitHub URLs for files not deployed to the website ( Changes MadeFiles converted from relative → GitHub URLs (not on website):
Files converted from GitHub URLs → relative links (on website):
VerificationAll relative paths have been validated to resolve correctly:
ImpactThis improves documentation UX by keeping users on the website when browsing docs (rather than redirecting to GitHub), while ensuring links to non-deployed files point to the correct GitHub URLs instead of 404ing. Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant Website as shakacode.com/docs
participant GitHub as github.com
Note over User,GitHub: Scenario 1: User clicks link to website docs
User->>Website: Browse docs/configuration/configuration-pro.md
User->>Website: Click link to react_on_rails_pro/docs/configuration.md
Note over Website: Uses relative link (../../react_on_rails_pro/docs/configuration.md)
Website->>Website: Navigate to same site
Note over User,Website: ✅ Better UX: Stay on website
Note over User,GitHub: Scenario 2: User clicks link to non-website files
User->>Website: Browse docs/configuration/configuration-deprecated.md
User->>Website: Click link to CHANGELOG.md
Note over Website: Uses GitHub URL (CHANGELOG not deployed to website)
Website->>GitHub: Redirect to github.com/.../CHANGELOG.md
GitHub->>User: Show CHANGELOG on GitHub
Note over User,GitHub: ✅ Correct: File only exists on GitHub
|
These relative links point to files not deployed to the website: - CHANGELOG.md (root) - 404 confirmed on shakacode.com - LICENSE_SETUP.md (react_on_rails_pro/) - will 404 when deployed Changed to GitHub URLs since target files aren't on website. Fixes part of #2317 Co-Authored-By: Claude Opus 4.5 <[email protected]>
Changed GitHub URLs to relative links for better UX: - Keeps users on the website instead of redirecting to GitHub - Works offline in local docs - Consistent with PR #1747 guidelines Note: troubleshooting.md links have broken anchors (sections removed from installation.md) - separate content issue. Fixes #2317 Co-Authored-By: Claude Opus 4.5 <[email protected]>
e94459c to
789a999
Compare
Apply the same fix pattern from PR #2322: change relative link pointing outside docs/ to a GitHub URL since the target file is not deployed to the website. Co-Authored-By: Claude Opus 4.5 <[email protected]>
Code Review - PR #2322✅ Overall AssessmentThis PR correctly addresses the documentation link issues identified in #2317. The changes are well-structured, properly motivated, and follow established conventions from PR #1747. 🎯 Code Quality & Best PracticesStrengths:
Link Strategy (Correctly Applied):
🔍 Technical VerificationRelative Path Validation: I verified the relative paths resolve correctly:
GitHub URL Targets (All Exist):
🚀 Performance ConsiderationsNo performance impact. This is a documentation-only change affecting:
🔒 Security ConcernsNone. All changes are to documentation links. No sensitive data, no security implications. 🧪 Test CoverageNot applicable - Documentation changes only. Suggested verification steps (as noted in PR description):
Additional suggestion: # From sc-website repo after deploying these changes
bundle exec rake linkchecker:check📋 Minor Observations
✅ RecommendationAPPROVE - This PR is ready to merge. Rationale:
Post-merge action items:
Great work @ihabadham! This is exactly the right approach for fixing documentation links. 🎉 |
## Summary Fixes documentation link issues identified in #2317: 1. **Broken relative links** → Changed to GitHub URLs (files not deployed to website) 2. **GitHub URLs for website docs** → Changed to relative links (better UX) ## Changes ### Commit 1: Fix broken relative links to files outside docs/ These relative links point to files NOT deployed to the website: - `../../CHANGELOG.md` → 404 on shakacode.com (verified) - `../LICENSE_SETUP.md` → will 404 when deployed Changed to GitHub URLs since target files aren't on website. **Files:** - `docs/configuration/configuration-deprecated.md` - `react_on_rails_pro/docs/installation.md` - `react_on_rails_pro/docs/updating.md` ### Commit 2: Use relative links for docs that exist on website Changed GitHub URLs to relative links for better UX: - Keeps users on the website instead of redirecting to GitHub - Works offline in local docs - Consistent with PR #1747 guidelines **Files:** - `docs/api-reference/view-helpers-api.md` - `docs/configuration/configuration-pro.md` - `react_on_rails_pro/docs/caching.md` - `react_on_rails_pro/docs/home-pro.md` - `react_on_rails_pro/docs/troubleshooting.md` ## Verification - ✅ All relative paths verified to resolve to existing files - ✅ All GitHub URLs verified to return 200 - ✅ CHANGELOG link 404 confirmed on live website before fix ## Related - Fixes #2317 - Created #2321 for separate content issue (outdated troubleshooting section with broken anchors) ## Test plan - [ ] Verify links work on local markdown preview - [ ] After deploy, verify links work on shakacode.com 🤖 Generated with [Claude Code](https://claude.ai/code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Normalized and updated links across configuration and Pro docs for clearer, more consistent navigation. * Improved cross-references between related documentation pages to streamline access to guidance and examples. * Clarified license and installation link destinations to reduce confusion when following setup and updating instructions. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Claude Opus 4.5 <[email protected]> Co-authored-by: Justin Gordon <[email protected]>
Summary
Fixes documentation link issues identified in #2317:
Changes
Commit 1: Fix broken relative links to files outside docs/
These relative links point to files NOT deployed to the website:
../../CHANGELOG.md→ 404 on shakacode.com (verified)../LICENSE_SETUP.md→ will 404 when deployedChanged to GitHub URLs since target files aren't on website.
Files:
docs/configuration/configuration-deprecated.mdreact_on_rails_pro/docs/installation.mdreact_on_rails_pro/docs/updating.mdCommit 2: Use relative links for docs that exist on website
Changed GitHub URLs to relative links for better UX:
Files:
docs/api-reference/view-helpers-api.mddocs/configuration/configuration-pro.mdreact_on_rails_pro/docs/caching.mdreact_on_rails_pro/docs/home-pro.mdreact_on_rails_pro/docs/troubleshooting.mdVerification
Related
Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit