docs: the showcase screenshots are shot at twice the pixel density

openApp() passes page options through, so the showcase run sets
deviceScaleFactor 2 — same CSS viewport and layout as the tests, 2800x2000 px
images that stay sharp where the README scales them down.
This commit is contained in:
Steffen Becker committed 2026-09-06 21:19:14 +02:00
1 parent d8be23cf68
commit 284fdae43e
11 files changed
+4 -3

No files matched your search

+2 -1
View File
@@ -13,7 +13,8 @@ const DOCS = ['thesis', 'thesis-review', 'book', 'newsletter'].filter((n) => !on
await mkdir(OUT, { recursive: true });
const server = await devServer(PORT);
const { browser, page, pageErrors } = await openApp(PORT);
// Same CSS viewport as the tests, shot at 2x so the README images stay sharp when scaled.
const { browser, page, pageErrors } = await openApp(PORT, { deviceScaleFactor: 2 });
const url = `http://localhost:${PORT}/`;
const ready = async () => {