tiulpin/termbook

Build a termbook gallery, or diff committed captures against fresh ones.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
mode"build" renders gallery.html. "diff" re-records every screen and compares against the captures committed at git HEAD.nobuild
versiontermbook version to install. "latest" picks the most recent release; a tag like "v0.3.0" pins; "source" builds from cmd/termbook in the checked-out repo. nolatest
source-pathPath to cmd/termbook when version=source. Relative to the workflow's working directory.no./cmd/termbook
outputPath to write the generated gallery HTML to (build mode).nogallery.html
onlyRender only the screen with this id (build mode).no
working-directoryDirectory containing .termbook/termbook.yml.no.
baselineDirectory of <id>.ansi files to diff against (diff mode). Mutually exclusive with baseline-ref.no
baseline-refGit ref to diff against (e.g. main). Defaults to HEAD. Use the PR base ref for "what changed in this PR" workflows.no
report-mdMarkdown report path (diff mode). Designed for `gh pr comment --body-file`.notermbook-diff.md
report-htmlOptional HTML report path (diff mode). Empty disables.no""
fail-on-changeWhen "true" (default), diff mode exits non-zero on any change. Set to "false" to keep going so a later step can post the report.notrue
namedescription
outputPath of the generated gallery HTML (build mode).
report-mdPath of the Markdown diff report (diff mode).
report-htmlPath of the HTML diff report (diff mode), if requested.
changed"true" when diff mode found at least one modified, added, or removed screen.