Today I finally gave Mermaid.js a try, with it's online diagram editor and the direct inclusion in MarkDown.
What a life-changer for my #JupyterBook documentation !
Today I finally gave Mermaid.js a try, with it's online diagram editor and the direct inclusion in MarkDown.
What a life-changer for my #JupyterBook documentation !
Unfortunately I already ran into my first "bummer" with Mermaid.
The diagrams render nicely in the HTML version of the @ProjectJupyter #JupyterBook, but we did not get the export to PDF (via HTML and pyppeteer) to work 😩 .
The fastest "solution" is to use mermaid.live to save a .png of the diagram, and include the .png itself in the #JupyterBook.
Works for HTML and exports nicely to PDF, but it slightly defeats the point of using #mermaid for programmable diagrams...
@clementd You mean offline generation? Or from a LibreOffice doc, maybe?
So far I used it in the browser (exported the image) or in JupyterBook (rendered by the browser).
@clementd oh that's neat indeed!
What seems to be missing ATM is the possibility to give graph names and reuse these names in other graphs (as subgraphs). That would allow graphs to be reusable across different project, without copy-paste. But most probably not easy as it sounds.
Mermaid.live is fantastic!