You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix unnecessary bullet points for single extensions in HTML docs (#936)
## Summary
Fixes issue #927
where single extension definitions were showing unnecessary bullet
points in the HTML documentation's "Defining Extension" section.
## Problem
- Single extensions like `definedBy: Sm` were displaying as `• Sm,
version >= 1.11.0` with unwanted bullet points
- This made the documentation look cluttered for simple cases where only
one extension is involved
- Multiple extensions correctly needed bullets, but single ones should
appear clean
## Solution
- Modified `to_asciidoc` method in `req_expression.rb` to detect simple
single extensions at root level
- Added `is_simple_single_extension?()` helper to identify when bullets
aren't needed
- Added `to_asciidoc_no_bullet()` method for clean formatting of single
extensions
- Preserved existing bullet behavior for complex multi-extension
conditions (allOf, anyOf, etc.)
## Testing
- Single extensions now display cleanly: `Sm, version >= 1.11.0`
- Multiple extensions maintain proper structure with bullets
- No regression in complex extension requirement formatting
## Impact
- Improves readability of HTML documentation for CSRs with single
defining extensions
- Maintains backward compatibility for all existing complex extension
definitions
Ready for Review @ThinkOpenly@dhower-qcFixes#927
---------
Signed-off-by: Sukuna0007Abhi <[email protected]>
Signed-off-by: GitHub <[email protected]>
0 commit comments