From 9d743a5d46cfe963e302996126c8b2f95e777cd5 Mon Sep 17 00:00:00 2001 From: Kristian Wind Date: Thu, 20 Aug 2026 07:27:48 +0200 Subject: [PATCH] fix(tools): shots skrev PNG'er ned i mappen med WebP MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Standardstien var site/screenshots, som siden landingssiden gik over til WebP kun indeholder WebP. En kørsel lagde tolv PNG'er ved siden af dem, som ingen tekst peger på. Den skriver nu til docs/, hvor de andre PNG'er ligger. Co-Authored-By: Claude Opus 5 --- tools/shots/main.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/shots/main.go b/tools/shots/main.go index 31f0144..ffd39f6 100644 --- a/tools/shots/main.go +++ b/tools/shots/main.go @@ -5,7 +5,7 @@ // cookie. Kept in the repository so the images can be regenerated when the // interface changes, rather than being a thing somebody did once by hand. // -// go run ./tools/shots -url http://localhost:8096 -cookie -out site/screenshots +// go run ./tools/shots -url http://localhost:8096 -cookie -out docs/screenshots package main import ( @@ -28,7 +28,9 @@ var chromePath = "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" func main() { base := flag.String("url", "http://localhost:8096", "the running instance") cookie := flag.String("cookie", "", "session cookie value") - out := flag.String("out", "site/screenshots", "where to write the PNGs") + // docs/, not site/: site/screenshots holds the WebP the landing page reads, and + // PNGs dropped in beside them are files nothing points at. + out := flag.String("out", "docs/screenshots", "where to write the PNGs") width := flag.Int("width", 1400, "viewport width") height := flag.Int("height", 900, "viewport height") flag.Parse()