Phase 6 part 5, step 3: theme updates by pull request

The theme carries a MANIFEST of its files' SHA-256s. A site's Theme card
shows its copy's version against Supermarket's and any files changed by
hand; Update the theme opens a pull request that writes new and changed
files, removes retired ones, rebuilds, and lists what it replaces.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-22 15:30:48 -07:00
co-authored by Claude Opus 5.5
parent 2a605ac265
commit 7da7c5fd9c
9 changed files with 384 additions and 6 deletions
+4
View File
@@ -133,6 +133,10 @@ disableKinds = ["taxonomy", "term", "RSS"]
func TestFiles(t *testing.T) {
fs := Files()
man := ParseManifest(fs["MANIFEST"])
if len(man) != len(fs)-2 || man["static/css/supermarket.css"] != Sum([]byte(fs["static/css/supermarket.css"])) {
t.Errorf("manifest: %d entries for %d files", len(man), len(fs))
}
if fs["VERSION"] != "1\n" || !strings.Contains(fs["README.md"], "| `hero` |") || !strings.Contains(LeadScript(), "window.leadPost") {
t.Error("files")
}