From 594a20a2473190adb41fb551f41cf84499b0d10f Mon Sep 17 00:00:00 2001 From: baladithyab Date: Wed, 27 May 2026 19:38:38 -0700 Subject: [PATCH] post(blog): promote mermaid-diagram-gallery from QA draft to public reference The old qa-mermaid-stress-test.mdx was written in private-QA voice ('Internal verification page', 'If anything renders broken, the issue is upstream...'). Reframe as a public reference post that complements the debug-arc post and let it surface in the blog listing. Changes: - File rename: qa-mermaid-stress-test.mdx -> mermaid-diagram-gallery.mdx (the new slug reads better in nav and in inbound links) - Frontmatter: - title: 'A reference gallery: every Mermaid diagram type the blog supports' - description: rewritten as user-facing 'copy-paste reference' - tags: 'qa' -> 'reference' - draft: true -> false - Body rewritten: - Intro pivots from 'internal QA' to 'live reference + companion to debug-arc' - Each section reframes 'should render with --muted/0.4 cluster bg' as 'cluster backgrounds get a subtle muted tint so they read as a group' (descriptive, not normative) - Adds notes that explain WHY each section exists from the reader's perspective (when would they want a stadium? a classDef? a state diagram?) - Closes with an 'open an issue if you hit a broken edge case' invite - Old URL had no inbound links; no redirect needed. Verified: bun run build green, all 6 mermaid blocks compile. --- src/content/blog/mermaid-diagram-gallery.mdx | 184 +++++++++++++++++++ src/content/blog/qa-mermaid-stress-test.mdx | 149 --------------- 2 files changed, 184 insertions(+), 149 deletions(-) create mode 100644 src/content/blog/mermaid-diagram-gallery.mdx delete mode 100644 src/content/blog/qa-mermaid-stress-test.mdx diff --git a/src/content/blog/mermaid-diagram-gallery.mdx b/src/content/blog/mermaid-diagram-gallery.mdx new file mode 100644 index 0000000..a1fa79b --- /dev/null +++ b/src/content/blog/mermaid-diagram-gallery.mdx @@ -0,0 +1,184 @@ +--- +title: 'A reference gallery: every Mermaid diagram type the blog supports' +description: 'A copy-paste reference of all the Mermaid diagram types this blog renders cleanly in both light and dark mode — flowcharts with subgraphs (parallel + nested), sequence diagrams with notes and loops, classDef-tinted nodes, wide flowcharts that scroll, and state diagrams. Source for each block included.' +publishedAt: '2026-05-27' +tags: ['meta', 'mermaid', 'reference'] +draft: false +featured: false +--- + +A live reference of every Mermaid diagram type this blog supports. +Each block below is rendered through the same build-time pipeline as +every other diagram on the site: `rehype-mermaid` + Playwright at SSR, +mermaid's embedded `