Documentation
¶
Overview ¶
Command socialpreview renders the repository social preview, a 1280x640 PNG in the DESIGN.md identity (ink background, Hound amber wordmark, the headline sentence, no key material), with the share card's fonts and renderer, reached through internal/report/social (pkg/report registers it; it is not library API). The headline and footer live here. The output is byte-identical on every OS.
By default it writes docs/media/social-preview.png. With -check it writes nothing and fails if the committed file differs from what it renders (CI drift check). The maintainer uploads the file by hand (docs/releasing.md, "Repository settings").
Usage: go run ./tools/socialpreview [-check] [-o docs/media/social-preview.png]
Exit codes: 0 written or up to date, 1 the committed file is missing or differs, 2 usage error or the file cannot be written.