// Command writeestilo re-writes the files internal/memoria/static takes from // the estilo this module pins: theme.css (Calma, with Memoria's accent), // and rastrillo's busy rule as estilo carries it — rastrillo.js without // the old rule, busy.js and busy.css — and the shared chrome: base.css // (links), menu.css (floating panels), chrome.css (the bar, the account // menu and the sign-in door), chrome.js (Escape and outside-click close) // and sky.css (the door's sky). Run it from the repository root // after upgrading estilo; the pin tests in internal/memoriatest fail until you do. package main import ( "os" "amadan.net/oficina/estilo.git/base" "amadan.net/oficina/estilo.git/busy" "amadan.net/oficina/estilo.git/chrome" "amadan.net/oficina/estilo.git/menu" "amadan.net/oficina/estilo.git/sky" "amadan.net/oficina/estilo.git/theme" ) func main() { css, ok := theme.ForApp("memoria") if !ok { panic("estilo's theme ring has no memoria") } for name, body := range map[string][]byte{ "theme.css": css, "rastrillo.js": busy.ShimJS(), "busy.js": busy.JS(), "busy.css": busy.CSS(), "base.css": base.CSS(), "menu.css": menu.CSS(), "chrome.css": chrome.CSS(), "chrome.js": chrome.JS(), "sky.css": sky.CSS(), } { if err := os.WriteFile("internal/memoria/static/"+name, body, 0o644); err != nil { panic(err) } } }