Skip to content

Render Mermaid diagrams on the website - #378

Merged
RyanLee-Dev merged 1 commit into
mainfrom
fix/website-mermaid
Oct 1, 2026
Merged

RyanLee-Dev merged 1 commit into
mainfrom
fix/website-mermaid

Conversation

@RyanLee-Dev

@RyanLee-Dev RyanLee-Dev commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The website showed the Mermaid diagrams in docs/architecture.md (flowchart TB) and docs/web/console-server.md (flowchart LR) as plain code blocks.

  • website/.vitepress/mermaid.mts turns ```mermaid fences into a <Mermaid> component at build time; other fences are unchanged.
  • Mermaid.vue lazy-loads mermaid in the browser (strict security level), waits for the web font so labels are measured correctly, keeps documentation paragraph styles out of the HTML labels (they clipped label text), uses the site palette and redraws when the colour theme changes. Without JavaScript, or if a diagram fails, the source is shown.
  • No file under docs/ changes.

Verification

  • make check-website: build plus 13 tests, including a new check that docs/architecture renders a diagram and no language-mermaid block.
  • make check-names check-ci with the new files tracked.
  • Browser: both diagrams render in dark and light mode with no console errors (13 and 7 nodes), labels are not clipped, and toggling the theme redraws the diagram.

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Mermaid fences in docs/architecture.md (flowchart TB) and
docs/web/console-server.md (flowchart LR) were shown as code. They now
render as diagrams in the browser, follow the colour theme and fall back
to their source without JavaScript.
@mintlify

mintlify Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
openagentcore 🟢 Ready View Preview Oct 1, 2026, 10:16 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

@RyanLee-Dev
RyanLee-Dev merged commit 0ed0a54 into main Oct 1, 2026
18 checks passed

This branch was successfully deployed

1 active deployment
staging — 46a731c9 Deployed Oct 1, 2026 by mintlify[bot]
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