Open Weibye opened 2 years ago
I wonder if we can automatically generate something "ECS overview diagrams" as part of a Bevy editor, and then include screenshots of that through a build system 🤔 Really, these seem like a generally-useful bit of tech, rather than specific to this book.
I am looking into this again, and had a little discussion in the documentation-dev
channel with a few others. I had a crack at implementing the diagrams with a few approaches: handcoding svgs, shortcode generated svgs, external assets and mermaid diagrams. Any interest in discussing further in the thread @alice-i-cecile @Weibye?
I don't have a ton of bandwidth for this currently, but this is definitely functionality that I would like!
Motivation
Types of diagrams we should consider supporting
I've focused on diagrams already in use or known to wanted in the near future
Potential Solutions
mermaid
What
Javascript framework for rendering various diagrams
Pros
Cons
HTML + CSS
What
By using shortcodes in Zola it is possible to create html blocs and display them in a page. However, for that to be composable and useful, we would need to add support for nested shortcodes, in which case we could write shortcodes somewhat similar to a mermaid script.
(Are there other ways to get it working?)
Pros
Cons
LaTeX
What
Example of how it looks in use
Pros
Cons
Feedback wanted