FerryDocs
ContributingDocs site

Figures

Four components draw the pictures of a page. A fifth component explains a technical name.

Edit on GitHub

Diagram. Things and what goes between them: boxes, arrows and dots that move.

1 / 5
This figure is a Flow

The figures

ComponentPropsUse
<Diagram>nodes, edges, groups, steps, captionBoxes and arrows on a grid. Dots move along the arrows, and steps play in a loop.
<Flow>stepsWhat happens, in order: one step is lit at a time.
<Terminal>lines, titleA session in a terminal that plays. The component types the $ lines. The other lines are output.
<Term>idA technical name with its definition from lib/glossary/.
<Mermaid>chartState machines and sequences. A mermaid code block does the same.

Each page can use them with no import. docs/AUTHORING.md gives an example and the limits of each figure.

Mermaid

Write a code block with the language mermaid: a flowchart, a sequence or a state diagram. The browser draws the diagram in the colors of Ferry, in light and dark mode.

  • For more than about four nodes, use flowchart TB. Then the diagram fits the column of 760 pixels.
  • <br/> works in labels.

SVG files

Put an SVG file that you made by hand in public/. Refer to it as /file.svg.

On this page