Page format

Publish a Mermaid diagram with Sentway

Sentway renders a Mermaid definition into a diagram and serves it as its own page. The author writes the diagram as text and Sentway does the drawing, so a flowchart can be revised by editing a few lines rather than moving shapes.

What to send

Set page_type to mermaid and put the diagram definition in source. Flowcharts, sequence diagrams, class diagrams, state diagrams, entity relationship diagrams, Gantt charts and pie charts are supported. A definition that fails to parse is rejected at publish time, so a broken diagram never reaches a visitor.

flowchart LR
  A[Visitor lands] --> B{Gate}
  B -- email --> C[Verify]
  B -- public --> D[Page]
  C --> D
  D --> E[Submission captured]

Shell background

Like SVG pages, a Mermaid page accepts shell.background as a six-digit hex colour, defaulting to #ffffff.

Other formats