-
Notifications
You must be signed in to change notification settings - Fork 159
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
Add Support for Previewing Mermaid Diagrams #952
Comments
I've used this in the past. <script type="module">
import mermaid from "https://esm.sh/[email protected]";
mermaid.initialize({
startOnLoad: true,
theme: "base",
themeVariables: {
primaryColor: '#ffdd59'
}
});
</script> and then use in Markdown: <div class="mermaid text-center">
graph TD
D[Teplin.Core]
E[Telplin]
F[Telplin.Lambda]
G[Telplin.Core.Tests]
D --> E
D --> F
D --> G
H[Telplin.Deploy]
I[OnlineTool]
</div> It makes me wonder if this should be an out of the box thing or not. |
I like @nojaf’s idea. A docs recipe like the latex MathJax one could be nice https://fsprojects.github.io/FSharp.Formatting/sidebyside/sideextensions.html |
I can add this to my docs to-do list. Thanks for the code snippet! |
Has anyone checked out Siren as an option? https://github.com/Freymaurer/Siren |
Summary
I wanted to open this issue in order to start a discussion for potentially adding support for previewing mermaid diagrams using FsDocs. I think this would be a great addition to the tooling so users/developers can stay within the bounds of fsdocs and navigate any visualizations created by the mermaid syntax.
Applicable Areas
There are the areas I see as being applicable if we wanted to pursue this functionality
Areas of Inspiration
The reason I point to these is these two sites have a much better user experience in terms of panning and zooming. While GitHub has a built in previewer, in my opinion, their panning and zooming is not ideals for larger mermaid diagrams.
The text was updated successfully, but these errors were encountered: