reportthumbs

package
v0.7.29-dev.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package reportthumbs holds two thumbnails of each built-in report theme: the first body page of one sample report (runnerimage/toolsrv/testdata/pdf/ thumbnail.md), the page after the cover where the theme draws one for it, and its cover page, rendered by the runner's own template and the pinned Typst image, as PNGs. The site's and the desktop's Report design pages show them, taking them with the CLI version they pin, so a thumbnail cannot drift from what a run draws: runnerimage/toolsrv's TestThumbnailsAreTheTemplates renders them again in the typst-image CI job and fails on any pixel that differs (AGENTRY_UPDATE_THUMBNAILS=1 rewrites them).

Nothing in the CLI binary imports this package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CoverPNG added in v0.7.22

func CoverPNG(id string) ([]byte, bool)

CoverPNG is a built-in theme's cover thumbnail: the sample's cover page, in the theme's cover style.

func IDs

func IDs() []string

IDs are the built-in themes a thumbnail is kept for, in the order they are offered: the core's.

func PNG

func PNG(id string) ([]byte, bool)

PNG is a built-in theme's thumbnail: the sample's first body page.

Types

This section is empty.

Jump to

Keyboard shortcuts

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