Add cache-tax brand cards, icons, and README banner - #64
Conversation
|
Two small fixes before this lands:
The assets themselves look good, the README banner path is correct, and Small metadata nit: the title is 74 characters. |
…generated SVGs build.mjs now trims line-end whitespace before writing each SVG, so the five checked-in sources pass git diff --check. package.json declares sharp ^0.35.4 under devDependencies with a lockfile, so a fresh clone can regenerate the PNGs with node site/brand/build.mjs. PNG output is byte-identical to the previous commit.
|
One remaining reproducibility issue. The PR body says Please resolve outputs relative to |
build.mjs resolved its output paths against the working directory, so running it from the repository root scattered the ten files into the root. Outputs now resolve against the script's own directory, and package.json gains a build:brand script so the documented regeneration path is npm install && npm run build:brand from anywhere in the clone. PNG output is byte-identical.
Summary
site/brand/: five PNGs rendered from hand-written SVG bybuild.mjs(sharp): social card 1280x640, X card 1200x675, icon 512 in ice blue and a warm amber variant for the Mod's keep-warm state, favicon 32. SVG sources beside them, and a short README saying which file is for what. Served by Pages under /brand/ on merge, since the deploy workflow triggers onsite/**.plugins/cache-tax/README.md: the social card as a banner under the title, relative path intosite/brand/.package.jsondeclaressharp^0.35.4 under devDependencies, with apackage-lock.json, and abuild:brandscript, sonpm install && npm run build:brandreproduces the PNGs from any directory in a fresh clone.build.mjswrites its outputs next to itself, not into the working directory.build.mjstrims line-end whitespace before writing each SVG, so the sources passgit diff --check.Test plan
git diff --check mainclean; regenerated PNGs byte-identical to the previous commit;npm test1,928 passing