From fb80454368b98e9e3402e54233c70b188c0b065e Mon Sep 17 00:00:00 2001 From: Jackson Oursland Date: Wed, 4 Nov 2026 17:33:39 +0000 Subject: [PATCH] User guide: window tour gets a numbered screenshot and a navigation clip (#10323) * Book: a numbered window screenshot and a navigation clip, from a capture script The window tour now opens with a screenshot of the real window, its parts numbered in the order the page describes them, and a short looping clip of orbit, pan, zoom and Home. examples/demo/doc_shots.py makes both, and any later figure: each shot is a function that starts a fresh app (its own settings) under Xvfb, drives it over the control channel with the demo's Demo driver, and writes a still (numbered callouts, palette-optimised PNG) or an H.264 clip (the drawn pointer of overlay.py, short button labels, idle cut by trim_idle.py) into docs/book/src/media/. CONTRIBUTING.md says how to redo a figure when the UI changes. Co-Authored-By: Claude Opus 5.5 * doc_shots: clips keep a moment on each result; the window tour again on 0.29.0 trim_idle.py takes --hold S, the seconds of each idle stretch to keep (default 0.1, as before, so the README demo is unchanged). The guide's clips keep 0.8 s, so a reader can see what each step did before the next begins. The window screenshot and the navigation clip are made again with it, on SolidCraft 0.29.0. Co-Authored-By: Claude Opus 5.5 --------- Co-authored-by: Claude Opus 5.5 --- CONTRIBUTING.md | 10 + attribution/pending/book-window-tour-media.md | 2 + docs/book/src/guide/ui-tour.md | 11 +- docs/book/src/media/ui-tour/navigate.mp4 | Bin 0 -> 660688 bytes docs/book/src/media/ui-tour/window.png | Bin 0 -> 107173 bytes examples/demo/doc_shots.py | 401 ++++++++++++++++++ examples/demo/trim_idle.py | 10 +- 7 files changed, 429 insertions(+), 5 deletions(-) create mode 100644 attribution/pending/book-window-tour-media.md create mode 100644 docs/book/src/media/ui-tour/navigate.mp4 create mode 100644 docs/book/src/media/ui-tour/window.png create mode 100644 examples/demo/doc_shots.py diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 75ed5eab6..acb4e8b11 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -472,6 +472,16 @@ the same area), first resolve the command registry and source conflicts, then ru The generator tests cover stable ordering and additions that leave existing lines unchanged. The initial switch to sorted rows is a one-time larger diff. +## Pictures in the user guide + +The user guide's screenshots and short clips (`docs/book/src/media/`) are captured from the real +app by `examples/demo/doc_shots.py`, one function per figure. Each run starts a fresh app with its +own settings, so your preferences never show. When a change makes a figure out of date, run +`python3 examples/demo/doc_shots.py ` (it needs Xvfb, ffmpeg, Pillow and a release +build) and commit the new file. A new figure is a new function there, an ATTRIBUTION row in +`attribution/pending/`, and a `