Skip to content

Replace documentation diagrams with SVG versions - #65

Merged
nigels-com merged 1 commit into
boostorg:developfrom
nigels-com:document-svg
Dec 1, 2026
Merged

nigels-com merged 1 commit into
boostorg:developfrom
nigels-com:document-svg

Conversation

@nigels-com

Copy link
Copy Markdown
Collaborator

The two diagrams in the documentation and the README (circular_buffer.png and space_optimized.png) were low-resolution bitmaps in a dated style. This PR redraws them as SVG, with the same content.

What changed

  • Style: items are separate blue segments, free space is a dashed outline, and allocation boundaries are heavy lines. Labels use the system font, and begin(), end() and min_capacity() use a monospace font.
  • Dark mode: the background is transparent, and an embedded prefers-color-scheme: dark style switches the colors, so the diagrams read well on GitHub's dark theme.
  • Accessibility: each SVG has a <title> and <desc>, and the README image has descriptive alt text.
  • Wording: "less items in the buffer" is now "fewer items in the buffer".
  • Size and sharpness: the SVGs are 3.7 KB and 5.7 KB, compared with 21 KB and 25 KB for the PNGs, and they stay sharp at any zoom level.

Files

File Change
doc/images/circular_buffer.svg new
doc/images/space_optimized.svg new
doc/images/circular_buffer.png removed
doc/images/space_optimized.png removed
doc/circular_buffer.qbk [$...] image references now use .svg
README.md uses the SVG, with alt text
doc/jamfile.v2 updated a commented-out reference to the old file name

Redraw circular_buffer.png and space_optimized.png as SVG, with the
same content and a cleaner, flat style:

- Items are shown as separate blue segments, free space as a dashed
  outline, and allocation boundaries as heavy lines. Labels use the
  system font, and begin(), end() and min_capacity() a monospace
  font.
- The background is transparent, with a prefers-color-scheme: dark
  style so the diagrams also read well in dark mode (for example on
  GitHub).
- Each file has a <title> and <desc> for accessibility.
- "less items in the buffer" becomes "fewer items in the buffer".

The SVGs are 3.7 KB and 5.7 KB, compared with 21 KB and 25 KB for
the PNGs.

Update the image references in circular_buffer.qbk and README.md
(with descriptive alt text), and a commented-out reference in
doc/jamfile.v2.
@nigels-com nigels-com added this to the boost 1.94.0 milestone Dec 1, 2026
@codecov

codecov Bot commented Dec 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@c75bf82). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop      #65   +/-   ##
==========================================
  Coverage           ?   99.43%           
==========================================
  Files              ?       10           
  Lines              ?     4578           
  Branches           ?     3358           
==========================================
  Hits               ?     4552           
  Misses             ?       23           
  Partials           ?        3           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@nigels-com
nigels-com merged commit cf22540 into boostorg:develop Dec 1, 2026
75 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant