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:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user