Skip to content

Mermaid fallback#2403

Merged
pwizla merged 17 commits intonextfrom
repo/mermaid-fallback
Feb 26, 2025
Merged

Mermaid fallback#2403
pwizla merged 17 commits intonextfrom
repo/mermaid-fallback

Conversation

@pwizla
Copy link
Copy Markdown
Collaborator

@pwizla pwizla commented Feb 26, 2025

This PR introduces a new custom Docusaurus component to use with Mermaid diagrams.
The component will:

  • either render the diagram
  • or render a fallback image if Mermaid fails (either the dark or light mode screenshot of the diagram, depending on current theme)

I also added a download button below the diagram because Mermaid diagrams are not zoomable.

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 26, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
documentation 🛑 Canceled (Inspect) Feb 26, 2025 5:20pm

@pwizla pwizla self-assigned this Feb 26, 2025
@pwizla pwizla added source: repo PRs/issues not targeting a specific documentation but rather affecting the whole repo pr: chore labels Feb 26, 2025
@pwizla pwizla added this to the v6.0.0-beta.2 milestone Feb 26, 2025
@pwizla pwizla merged commit c8d9571 into next Feb 26, 2025
@pwizla pwizla deleted the repo/mermaid-fallback branch February 26, 2025 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: chore source: repo PRs/issues not targeting a specific documentation but rather affecting the whole repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant