Repository navigation
Replace documentation diagrams with SVG versions - #65
Merged
Merged
Conversation
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.
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The two diagrams in the documentation and the README (
circular_buffer.pngandspace_optimized.png) were low-resolution bitmaps in a dated style. This PR redraws them as SVG, with the same content.What changed
begin(),end()andmin_capacity()use a monospace font.prefers-color-scheme: darkstyle switches the colors, so the diagrams read well on GitHub's dark theme.<title>and<desc>, and the README image has descriptive alt text.Files
doc/images/circular_buffer.svgdoc/images/space_optimized.svgdoc/images/circular_buffer.pngdoc/images/space_optimized.pngdoc/circular_buffer.qbk[$...]image references now use.svgREADME.mddoc/jamfile.v2