Mermaid for Diagrams #3804
smiths
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
|
This looks like a great tool! In all honesty, I wouldn't mind completely switching from draw.io over to this, too. We should see how this is rendered in commits and PRs too -- a side-by-side of UML diagrams would be very helpful!! It looks like it has a pretty large community, with an online editor and a large list of tools it can be integrated with. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
At the UML for scientific software talk the speaker mentioned mermaid as a tool for drawing diagrams in GitHub. In our recent discussion of the chunk relation by @NoahCardoso and @balacij they drew diagrams in draw.io. I think we should still use draw.io (or similar tools), but if we want to talk about a smaller example where a picture would help, mermaid could be a good choice. It can be used to draw diagrams automatically in GitHub by using the triple quotes with the mermaid language identifier. The following example is from a GitHub repo of examples.
classDiagram Animal <|-- Duck Animal <|-- Fish Animal <|-- Zebra Animal : +int age Animal : +String gender Animal: +isMammal() Animal: +mate() class Duck{ +String beakColor +swim() +quack() } class Fish{ -int sizeInFeet -canEat() } class Zebra{ +bool is_wild +run() }Beta Was this translation helpful? Give feedback.
All reactions