Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace mermaid with Graphviz #226

Merged
merged 11 commits into from
Nov 28, 2024
Merged

Replace mermaid with Graphviz #226

merged 11 commits into from
Nov 28, 2024

Conversation

jonathanpallant
Copy link
Member

@jonathanpallant jonathanpallant commented Nov 15, 2024

Replaces mermaid diagrams with Graphviz.

This means we can render them in advance in mdslides, and avoid the weird rendering but that means diagrams often won't even display correctly.

I did try a mermaid renderer in ferrous-systems/mdslides#23 but it requires headless Chrome, and you can't control the theme.

Uses mdslides 0.5.0, which converts ```dot process code blocks into SVG.

Requires updated mdslides binary.
TODO: Needs update mdslides release that understands these new graphviz diagrams.
Copy link

cloudflare-workers-and-pages bot commented Nov 15, 2024

Deploying ferrous-systems-rust-training with  Cloudflare Pages  Cloudflare Pages

Latest commit: fd892d1
Status: ✅  Deploy successful!
Preview URL: https://e958c987.ferrous-systems-rust-training.pages.dev
Branch Preview URL: https://remove-mermaid.ferrous-systems-rust-training.pages.dev

View logs

Also switch lightgreen to green3, because this old version of dot doesn't know what "lightgreen" is.
@jonathanpallant jonathanpallant changed the title Draft: remove mermaid Replace mermaid with Graphviz Nov 21, 2024
@jonathanpallant
Copy link
Member Author

image

@jonathanpallant
Copy link
Member Author

image

@listochkin listochkin merged commit dc3745d into main Nov 28, 2024
8 checks passed
@listochkin listochkin deleted the remove-mermaid branch November 28, 2024 11:17
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.

2 participants