// Emits rastrillo's vendored front-end assets into internal/memoria/static: // tokens.css, the one memoria uses. `go tool rastrillo doctor --fix` does // the same and more — it also adds select.js, datetime.js and calendar.js, // which no page links, and overwrites rastrillo.js with the old shim; this // writes only what the pin test reads. // // Not rastrillo.js: that file comes from estilo's busy package, via // scripts/writeestilo, without the old busy rule. The one in this library // still has it, and the two rules together cancel every submit. package main import ( "log" "os" "path/filepath" "amadan.net/rastrillo/rastrillo/ui" ) func main() { dir := filepath.Join("internal", "memoria", "static") for name, body := range map[string][]byte{ "tokens.css": ui.TokensCSS(), } { if err := os.WriteFile(filepath.Join(dir, name), body, 0o644); err != nil { log.Fatalf("write %s: %v", name, err) } log.Printf("wrote %s (%d bytes)", name, len(body)) } }