Skip to content

docs(examples): surface screenshots in readme, harden render resolution#291

Merged
plind-junior merged 2 commits into
testfrom
docs/example-screenshots-followups
Jun 30, 2026
Merged

docs(examples): surface screenshots in readme, harden render resolution#291
plind-junior merged 2 commits into
testfrom
docs/example-screenshots-followups

Conversation

@plind-junior

Copy link
Copy Markdown
Collaborator

follow-ups to #290, which added the example-kb screenshots. both are small and additive.

readme link. the screenshots landed under examples/ but the top-level readme only showed docs/demo.gif — nothing pointed a reader at them. the 30-second tour now links examples/ and names the captured commands, so you can see what the cli returns before installing.

render hardening. docs/img/examples/render.py resolved vouch off PATH before the interpreter-local script. a stale global vouch shadowing the venv (exactly what's on my machine — an older build without the diff subcommand) would render every shot against the wrong cli and silently overwrite the committed svgs. it now prefers the vouch next to the running interpreter and falls back to PATH only when none exists.

verification: tests/test_example_screenshots.py passes — and now passes even in a shell where the venv isn't activated, which it didn't before. committed svgs are unchanged; ruff clean on the edited script.

base is test because the screenshot infra from #290 isn't on main yet.

the examples/ fixtures gained rendered screenshots in #290 but the
top-level readme never pointed at them. add a one-line nudge from the
30-second tour so a reader can see what the cli returns before installing.
render.py resolved `vouch` off PATH first, so a stale global install
shadowing the venv would render every shot against the wrong build and
silently overwrite the committed images. prefer the vouch next to the
running interpreter (the venv's editable build); fall back to PATH only
when none exists. the guard test now passes without activating the venv.
@github-actions github-actions Bot added docs documentation, specs, examples, and repo guidance size: XS less than 50 changed non-doc lines labels Jun 30, 2026
@plind-junior plind-junior merged commit 97ce4c6 into test Jun 30, 2026
8 checks passed
@coderabbitai

coderabbitai Bot commented Jun 30, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 83bf6aa1-e437-4d53-80b2-3c0abc8ae058

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/example-screenshots-followups

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs documentation, specs, examples, and repo guidance size: XS less than 50 changed non-doc lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant