Reject duplicate docs IDs - #404
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (9)
📝 WalkthroughWalkthroughThe PR separates chart-factory and capability headings, adds duplicate-ID validation for rendered documentation components and prerendered HTML routes, and adds regression tests for content and redirect pages. ChangesDocumentation validation
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant PublicPage
participant DocumentationRenderer
participant IDValidator
participant HTMLRouteValidator
PublicPage->>DocumentationRenderer: render documentation components
DocumentationRenderer->>IDValidator: provide component tree
IDValidator-->>PublicPage: report duplicate literal IDs
PublicPage->>HTMLRouteValidator: provide prerendered HTML
HTMLRouteValidator-->>PublicPage: report duplicate element IDs
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Merging this PR will not alter performance
Comparing Footnotes
|
There was a problem hiding this comment.
All reported issues were addressed across 7 files
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
What changed
chart()only once.Notessections in both the generator and generated docs/spec output.Why
Authored and generated headings collided on Chart Factories, while repeated
Notesheadings collided on the Capability Matrix. Duplicate IDs make anchor links and generated navigation ambiguous.Impact
Each public docs route now has unique static element IDs, and the docs suite will reject future duplicate anchors.
Validation
docs/app/.venv/bin/pytest -q docs/app/tests/test_unique_ids.py— 2 passeddocs/app/.venv/bin/python docs/app/scripts/check_duplicate_ids.py.venv/bin/python scripts/gen_capability_matrix.py --checkFixes #396
Summary by CodeRabbit
Documentation
Bug Fixes
Tests