|
Sites used to copy-paste ~340 lines of suffix rules, derived-asset
lists, and recipes (global.conf assembly, sitemap, security.txt,
gpg-derived fingerprint/expiry, check-unit-*) into every Makefile.
Move all of it into share/mkwb/site.mk, shipped at install time.
Add src/rules.in -> `mkwb rules`: prints the absolute path of the
shipped site.mk so a site's mkdeps.sh can append it as the last
`include` line of deps.mk. The site's own Makefile then needs
only an `all:` anchor (to keep it as the default target ahead of
deps.mk's first rule) and `include deps.mk`.
Also adds tests/resources/{site,expected}/ and tests/integration.sh
exercising mkwb htmlbody / links / snippets / sortdata against
golden files, with sortdata covering >1 collection and >1 entry
per collection to verify per-collection chronological ordering.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|