Component test reference

verifier docs

The docs subcommand and its browser

Read the Verifier manual, offline, from the binary that shipped it.

Synopsis

verifier docs [--no-tty]
verifier docs list
verifier docs open PAGE
verifier docs search QUERY

Description

Every manual page is compiled into Verifier, so the manual you read is the one that matches the binary you are running. No network access, no files to install.

With no subcommand, verifier docs opens an interactive browser: the page list on the left, the page text on the right. When stdout is not a terminal — a pipe, a CI log, a file — it prints the page list instead, so it is safe in a script.

The page list is a tree. A folder appears as its own row with its pages indented under it, so commands/run reads as run beneath commands/. Moving through the list steps from page to page and skips the folder rows.

The browser styles the page as it reads it: headings take a colour that fades with depth, indented examples and inline code take their own colour, and bold and italic markers become bold and italic text. Printed pages stay plain, so a pipe or a file gets the text unchanged.

Options

  • --no-tty: Optional Print the page list instead of opening the browser.

Subcommands

  • list: Print every page name with its one-line summary, grouped by folder.
  • open PAGE: Print a page. Pages that sit in a folder carry the folder in their name, as commands/run. An unknown name exits 1 and names the closest page.
  • search QUERY: Print ranked matches across the whole manual: the page and heading that contains the match, how many times the query appears, and a snippet. A query that matches nothing is retried with typo tolerance; the substitution is stated. Exits 1 when nothing matches either way.

Browser Keys

  • j / k, down / up: move
  • h / l, left / right: switch pane
  • /: open a search box. In the left pane it searches the full text of every page and keeps the ones that match, and marks the same text in the page on the right so you land on it. In the right pane it finds text in the page you are reading. Enter keeps what you typed; Esc clears it.
  • n / N: next / previous match in the page
  • c: clear the filter and the search
  • q, Esc: quit

The mouse works too: click a row in the page list to select that page, and turn the wheel over the page text to scroll it. Either one moves the keys to the pane you acted on.

Examples

Find the paragraph that explains a config key you hit in a file:

verifier docs search connect_timeout_ms

Look up a term:

verifier docs open glossary

Read a page in a pipeline log:

verifier docs open results

Read the page for a subcommand, naming the folder it sits in:

verifier docs open commands/run