Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 1 addition & 30 deletions WIP.Screenshots.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,7 @@ Exit codes: 0 every picture written or unchanged, 1 a picture failed, 2 the tool
Added and deleted PNGs, one beyond noise, and one whose SVG alone changed are left alone.
`--dry-run` lists; the IDE options (`--ide`, `--jobs`, `--svg`, `--bundles`, `--diffs`,
`--against-disk`) are refused with it. One noise rule: the capture's `nearly`, `--cleanup`
and `sheet.mjs --against`'s within-noise section all call `withinNoise`
(`scripts/lib/shot-change.mjs`), and the sheet shows the `--cleanup` command beside its
`git checkout` one. On the BETA 1033 retake its dry run puts back none of the 329 modified
and the review tool all call `withinNoise` (`scripts/lib/shot-change.mjs`). On the BETA 1033 retake its dry run puts back none of the 329 modified
pictures.
- **Setups**: one IDE each --- `no-project` (menus, dialogs, panels), `help` (the add-in's nine,
`test/addin/helpdemo`), `project`, `sample`, the `settings` setups, `glyphs`, `global-search`
Expand Down Expand Up @@ -1147,33 +1145,6 @@ the PNG was just captured from, and the build shows it in place of the PNG
which is what the filter's own merge paints. One SVG serves screen and book, since the
bake is exact. Blurred shadows stay bitmaps in
the PDF, which loses nothing.
- **The sheet of the pictures with no SVG** (owner): `scripts/svgshot/sheet.mjs --out <dir>`
writes `index.html` and a `pictures/` folder, openable from `file://`: each PNG with no SVG
beside it (`--all`: every PNG) that has a bundle is drawn again and judged as replay does,
worst first, PNG, render and difference map side by side; then the ones with no bundle as
thumbnails. A bundle whose PNG has changed is drawn anyway, with a note (`redraw`'s `stale`).
The sheet is for the owner alone, so it is drawn with `checkUserName: false` and may show the
user name (owner); `outputRefusal` keeps it out of `docs/` and out of any path git does not
ignore, and an existing folder must hold an earlier sheet. What it shares with replay is
`scripts/svgshot/redraw.mjs` (`redraw`, `writeJudged`, `runShards`/`inBrowser`, the
`judgedFiles` names: `<slug>.svg-diff.png` and `<slug>.svg` as `--diffs` names them); its pages are
`scripts/svgshot/sheets.mjs`, made of the pieces in `scripts/lib/shot-views.mjs`.
`shoot_docs.mjs --diffs` is to call `sheetHtml` over its diffs folder in a later commit.
A sheet of the pictures with no SVG takes seconds; `--all`, over some 550 pictures, about a
minute.
- **The sheet of changes against a revision** (owner): `sheet.mjs --out <dir> --against <rev>`
reviews what a screenshot run rewrote: each PNG under `--docs` that git (run in that folder,
so its repository answers) reports changed against the revision, working tree against commit,
untracked PNGs added, as old / new / difference map (`scripts/lib/shot-change.mjs`; sizes that
differ are compared aligned at the top left, the map shows the larger). Order: changed, most
changed first (share of pixels more than 16 levels off); then the pictures within the noise
rule (`withinNoise`, the rule `shoot_docs.mjs` moved there: 16 levels, 0.5% of the pixels),
which shoot_docs never writes over a file, so they are most likely rewritten in error (owner),
with one `git checkout <rev> -- <paths>` and the `shoot_docs.mjs --cleanup` command, which the
page only shows; then added, then deleted. The revision's pictures are read in one `git
cat-file --batch` (`readRevisionFiles`, `scripts/lib/shot-revision.mjs`). PNG
against PNG, no browser: 337 pictures in about 30 s. On the BETA 1033 retake none was within
noise.
- **The bar** (`SVG_FAITHFUL` in `scripts/lib/shot-policy.mjs`): an SVG with more than 0.25% of its pixels 96
grey levels or more off is not written, and an older one is removed. Anything not drawn falls
to it. A picture's entry in `test/shots/manifest.json` can move it, to any level and share,
Expand Down
58 changes: 23 additions & 35 deletions WIP.ShotReview.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions WIP.md

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions docs/Documentation/Authoring.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ An animation is an animated `.webp`, a fraction of the size of the same `.gif`.

**A file you do not want published does not belong under `docs/`,** unless a
pattern in `_config.yml`'s `exclude:` covers it. These are excluded at any depth:
`.scss` stylesheets, `.dot` diagram sources, and the Affinity `.af` screenshot
sources under `_Images/`. So is everything underscore-prefixed at the root of
`docs/` --- `_config.yml` and `_book.yml`, the `_sass/` tree, and the build's
`.scss` stylesheets and `.dot` diagram sources. So is everything underscore-prefixed
at the root of `docs/` --- `_config.yml` and `_book.yml`, the `_sass/` tree, and the build's
output trees (`_site/`, `_site-offline/`, `_serve/`, `_pdf/` and their
variants). Keep scratch notes, editor backups and working documents outside the
tree.
Expand Down
2 changes: 1 addition & 1 deletion docs/Documentation/Building.md
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ Each picture is a *shot* in the tool's table: the file it writes, the IDE it is

A new picture of the IDE is a new shot. `node scripts/shoot_docs.mjs --help` lists the options, and [shoot_docs.mjs](Tools-IDE#shoot-docs) describes how the tool keeps pictures the same from one run to the next and keeps your own settings and name out of them.

A picture the tool does not take, such as the GitHub pages under [Deploying to docs.twinbasic.com](#deploying-to-docstwinbasiccom), is a PNG file in the `Images` folder beside its page. The file an image editor saved it from, if you keep one, goes in the `_Images` folder beside that, which is not published.
A picture the tool does not take, such as the GitHub pages under [Deploying to docs.twinbasic.com](#deploying-to-docstwinbasiccom), is a PNG file in the `Images` folder beside its page.

[docs-pr]: https://github.com/twinbasic/documentation/compare
[docs-repo]: https://github.com/twinbasic/documentation
Expand Down
14 changes: 6 additions & 8 deletions docs/Documentation/Images/Tools-Groups.dot
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,15 @@ digraph tools_groups {
i1 [label="addin_test"] i2 [label="ide_test"]
i3 [label="try_help_addin"] i4 [label="shoot_docs"]
i5 [label="imagestrip"] i8 [label="probe_theme_semicolon"]
i7 [label="svgshot/replay"] i9 [label="svgshot/sheet"]
i10 [label="shot_review"] i11 [label="svgshot/chromeshot"]
i7 [label="svgshot/replay"] i10 [label="shot_review"]
i11 [label="svgshot/chromeshot"]
i12 [label="svgshot/chrome_try"]
i1 -> i3 -> i5 -> i7 -> i10 -> i12
i2 -> i4 -> i8 -> i9 -> i11
i1 -> i3 -> i5 -> i7 -> i12
i2 -> i4 -> i8 -> i10 -> i11
{ rank=same; i3 i4 }
{ rank=same; i5 i8 }
{ rank=same; i7 i9 }
{ rank=same; i10 i11 }
{ rank=same; i7 i10 }
{ rank=same; i12 i11 }
}
subgraph cluster_defects {
margin=12
Expand Down Expand Up @@ -390,8 +390,6 @@ digraph tools_groups {
tooltip="Draws the SVG of each picture again from its saved bundle, with the converter as it is now. Starts no IDE and takes no picture."]
i8 [URL="Tools-IDE#probe-theme-semicolon"
tooltip="Lists the properties that the IDE silently drops when it loads the theme files it ships, because a property lacks its semicolon."]
i9 [URL="Tools-IDE#svg-sheet"
tooltip="Writes a page that shows, for each picture with no SVG, the PNG, the SVG drawn again from its bundle and a map of their differences, the worst first."]
i10 [URL="Tools-IDE#shot-review"
tooltip="Serves a page in the browser for reviewing what the screenshot tools decided about each picture, deciding otherwise, starting runs and committing the result."]
i11 [URL="Tools-IDE#chromeshot"
Expand Down
Loading
Loading