Skip to main content

Visual Standards designed

The portal should use visuals where they reduce cognitive load. A diagram is part of the documentation contract: it needs source ownership, review, and a clear update path.

Use Diagram Backlog to decide which diagrams to build next and which audience each visual serves.

Decision Rule

NeedPreferred formatWhy
Sequence, ownership, state, dependency, release flowMermaidReviewable text, easy diffs, lives beside the page.
Product screenshot or UI evidenceImage artifactShows the real interface; use only when source and freshness are clear.
Rich concept illustration, branded overview, visual metaphorMaintained imageUse when Mermaid cannot express the idea cleanly.
API/event/entity lookupGenerated reference or tableKeeps contract details tied to source artifacts.

Mermaid First

Use Mermaid for diagrams that must evolve with architecture or process docs. Keep labels short, avoid visual cleverness, and link the page back to canonical source docs.

Docusaurus supports Mermaid through @docusaurus/theme-mermaid and markdown.mermaid: true. The official diagram docs show Mermaid code blocks, the dynamic Mermaid component, theming, and optional layout configuration. The Docusaurus test page also exercises many Mermaid diagram types, including sequence, flowchart, class, state, entity relationship, user journey, pie, gitgraph, mindmap, quadrant, and Mermaid architecture diagrams.

When Mermaid Is Not Enough

Use an image when the visual needs:

  • real UI state,
  • screenshots of evidence,
  • product or brand composition,
  • visual hierarchy that would be unreadable in Mermaid,
  • externally shareable diagrams that need manual design polish.

This is also how Docusaurus handles its own architecture overview: the architecture guide embeds a maintained PNG diagram instead of Mermaid when the layout needs precise grouping, callouts, and visual hierarchy.

Store maintained portal images under packages/docs/static/img/portal/. Name files by page and purpose, for example:

packages/docs/static/img/portal/security-readiness-release-rings.png
packages/docs/static/img/portal/app-sdk-developer-path.png

Every image-backed page should still include source_docs that explain the claim the image is making. Screenshots should name the source environment or artifact in nearby text.

Static Diagram Pattern

For curated static diagrams:

  1. Keep the rendered image under packages/docs/static/img/portal/.
  2. Keep the editable source beside it when possible, for example .drawio, .fig, .excalidraw, or .svg.
  3. Name the source doc or architecture decision that the image explains.
  4. Add alt text that is useful without the image.
  5. Re-render the image when the source docs change.

Use PNG for screenshots and broad compatibility. Use SVG when the diagram is hand-authored, reviewable, and does not leak hidden metadata.

Example:

![Platform foundation ownership flow](/img/portal/platform-foundation-ownership-flow.png)

The image is the presentation layer; the canonical explanation remains in source_docs.

External inspiration:

Review Rules

  • Architecture diagrams require architecture review.
  • Security posture diagrams require security review.
  • Product screenshots or journey visuals require product/frontend review.
  • Public, customer, or partner visuals require visibility review before publication.
  • If the visual explains a contract, update the canonical source before the portal page.

Diagram Roadmap

The visual roadmap lives in Diagram Backlog. It separates P0 onboarding diagrams, P1 deep-dive diagrams, and P2 supporting diagrams so visuals can land with the same discipline as source-doc consolidation.