socialpreview

command
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2026 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL