Repository navigation
docs: update README previews with v2 output in light and dark themes - #562
Conversation
Replace the v1-era screenshots with ones taken from a real v2 (v2.0.0-rc.25) run. Each preview has a light and a dark variant, picked with the #gh-light-mode-only/#gh-dark-mode-only fragments that both GitHub and Material for MkDocs support. The PR review preview now shows one review with two comments: a suggestion with clang-tidy's rationale, and a clang-tidy rationale without a suggestion. The step summary screenshot is unchanged. Resolves #559
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Thanks! Added both in 811160d as Generated by Claude Code |


Resolves #559.
The README previews were screenshots of cpp-linter v1. This replaces them with screenshots of a real v2 run, each in a light and a dark variant.
What changed
Thread comment: the v2 report, with the clang-format section expanded to show the per-file line count.
PR review: one review with two comments, as suggested in Update preview pictures in README #559:
The separate "Only clang-tidy" / "Only clang-format" sections are gone.
Annotations: one screenshot of an annotation in the PR's changed files, and one of the annotations list in the workflow run summary. v2's clang-format notice has no line number, so GitHub shows it in the run summary only, not in the diff. That's why the old "clang-format annotations" / "clang-tidy annotations" split no longer fits.
Step summary: the light and dark screenshots 2bndy5 took of the same run (GitHub only shows job summaries to signed-in users).
Light/dark switching uses the
#gh-light-mode-only/#gh-dark-mode-onlyfragments. GitHub supports them, and so does Material for MkDocs (it follows the docs site's palette toggle), so the same reference links work inREADME.mdand indocs/docs/index.md, which includes it. I checked both: the README on this branch on github.com, and a localmkdocs build, show only the matching image in each theme.How the screenshots were made
They come from cpp-linter/test-cpp-linter-action#70 (a temporary PR, to be closed):
cpp-linterv2.0.0-rc.25 onubuntu-24.04with clang 21.1.8, the repo's.clang-tidy(--tidy-checks=""), and--thread-comments=update --pr-review=true --file-annotations=true --step-summary=true. They were captured with Playwright at 2x scale and reduced to 256 colors (about 14–93 KB each).Summary by CodeRabbit