render-fixture

command
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: MIT Imports: 17 Imported by: 0 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 render-fixture is a one-off renderer that injects synthetic sponsors + topics plugin Results into a plugins.Data and dumps the classic-template SVG to disk so we can screenshot it for visual verification of the partials added in 011.

Real upstream data isn't reachable for these two plugins yet (sponsors needs `read:user` scope + GraphQL wiring; topics needs the chromedp scraping path + `extras.metrics.run.puppeteer.scrapping` extras), so no real user — not even lowlighter — produces non-empty output via the live engine path today. Until that wiring lands, this fixture dump is the closest visual proof we can ship.

Usage:

go run ./cmd/render-fixture --slug sponsors --out /tmp/sponsors.svg
go run ./cmd/render-fixture --slug topics   --out /tmp/topics.svg
go run ./cmd/render-fixture --slug topics_icons --out /tmp/topics_icons.svg

Delete this directory once the plugins' Run wiring lands and real data renders end-to-end.

Jump to

Keyboard shortcuts

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