Skip to content

feat: D2 diagrams - #338

Merged
rich-iannone merged 12 commits into
mainfrom
feat-d2-diagrams
Sep 2, 2026
Merged

rich-iannone merged 12 commits into
mainfrom
feat-d2-diagrams

Conversation

@rich-iannone

Copy link
Copy Markdown
Member

This PR adds support for pre-rendering D2 diagrams as static SVGs at build time, ensuring that diagrams are displayed correctly in both light and dark modes. The implementation includes a new Python module for extracting, rendering, and replacing D2 code blocks, integrates the rendering step into the build process, and introduces new styles for consistent diagram presentation.

@github-actions

github-actions Bot commented Sep 2, 2026 •

Copy link
Copy Markdown

📚 Preview this PR's docs locally

Fetch the just-built site and open it in your browser:

# this exact build
great-docs preview --run 33690905020

# or always the latest build for this PR
great-docs preview --pr 338
Auth & tips
  • Requires great-docs: pip install great-docs (or run via pipx/uvx).
  • Auth: run gh auth login then add --use-gh, or set GITHUB_TOKEN (needs Actions: read).
  • Jump to a page: add --path reference/index.html.
  • Latest vs exact: --pr <n> grabs the newest build; --run <id> pins this one.
  • Re-download: --refresh ignores the local cache.

@rich-iannone
rich-iannone merged commit 396cd8e into main Sep 2, 2026
8 checks passed
@rich-iannone
rich-iannone deleted the feat-d2-diagrams branch September 2, 2026 22:50
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