Skip to content

docs: render mermaid diagrams on the Pages site#1

Merged
stephendchu merged 1 commit into
mainfrom
docs/render-mermaid
Jun 13, 2026
Merged

docs: render mermaid diagrams on the Pages site#1
stephendchu merged 1 commit into
mainfrom
docs/render-mermaid

Conversation

@stephendchu

Copy link
Copy Markdown
Owner

The gated pipeline flowchart is already in the README as a ```mermaid block, but it rendered as raw text on https://stephendchu.github.io/assay/ — Jekyll/kramdown emits <pre><code class="language-mermaid">, which Mermaid doesn't auto-detect.

This wires Mermaid.js into the custom _layouts/default.html: rewrite those code blocks into <pre class="mermaid"> and run Mermaid on load. No README change needed — the diagram content was already correct (<br/> line breaks).

Once merged, GitHub Pages rebuilds and the diagram renders.

🤖 Generated with Claude Code

@stephendchu stephendchu force-pushed the docs/render-mermaid branch from bc27316 to 3bf7373 Compare June 13, 2026 22:41
The "gated pipeline" flowchart is already in the README as a ```mermaid
block, but Jekyll/kramdown emits it as a language-mermaid code block that
Mermaid does not pick up, so it rendered as raw text on the GitHub Pages
site. Wire Mermaid.js into the custom layout: rewrite those code blocks
to <pre class="mermaid"> and run Mermaid on load.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@stephendchu stephendchu merged commit bed39dd into main Jun 13, 2026
1 check passed
@stephendchu stephendchu deleted the docs/render-mermaid branch June 13, 2026 22:56
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