Skip to content

Shows the example run in colour - #60

Open
johnnyt wants to merge 1 commit into
mainfrom
readme-colour-example
Open

Shows the example run in colour#60
johnnyt wants to merge 1 commit into
mainfrom
readme-colour-example

Conversation

@johnnyt

@johnnyt johnnyt commented Aug 2, 2026

Copy link
Copy Markdown
Member

0.13.0 added colour to the stage status lines, but the README's example output
is a fenced code block, and neither GitHub nor HexDocs renders ANSI inside one.
The section called "The output is the point" was showing the shape of a run
without the thing the release changed.

It is an SVG now. Hand-written rather than screenshotted, so the colours are
the ones ExQuality.Printer actually emits (green tick and stage name, dim
skip line, red failure via Mix.Shell.IO.error/1) and the findings below stay
uncoloured because Finding.render/1 does not colour them.

A line under the image says colour is a second channel over the // and
is dropped when the output is not a terminal, so nobody reads the image as a
promise about CI logs.

The image is referenced by absolute raw.githubusercontent.com URL. That is the
same reasoning as the guide links in #58: hex.pm resolves a README's relative
paths against the tarball, so a relative reference would have to ship in
files: and grow the download for every dependent. mix.exs has a note to that
effect now, since its existing comment claimed the mark was the only asset the
README referenced.

Rendered check of the SVG is attached below - padding, glyph rendering and the
monospace column all verified at the committed size (732x464).

@johnnyt
johnnyt force-pushed the readme-colour-example branch from 8ecfaba to 4d0030d Compare August 2, 2026 14:35
@johnnyt johnnyt changed the title Show the example run in colour Shows the example run in colour Aug 2, 2026
A fenced code block cannot carry ANSI, so the README's example output showed
the shape of a run but not the green, dim and red that 0.13.0 added. It is an
SVG now, hand-written to match what Printer emits rather than screenshotted,
with a line saying the colour is a second channel over the glyph and is dropped
off a terminal.

The image is referenced by absolute URL, so it does not join the package files
and the tarball every dependent downloads is unchanged.
@johnnyt
johnnyt force-pushed the readme-colour-example branch from 4d0030d to 1384f64 Compare August 2, 2026 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant