![]() ![]() Update: I ended up writing a GitHub Action that uses this script with minimal setup required.įor now, I hope this is useful to someone.Mermaid is a syntax similar to Markdown where you can use text to describe and automatically generate diagrams. This repo can be included as a submodule and provide its utilities to any project, without introducing a bunch of duplicated code. I’m planning to put this script and other repository utilities in a separate repo on GitHub. ( $< is set to the first prerequisite) Conclusion md files and invokes render-md-mermaid.sh. The make target uses a little trick to find the script by referencing it as a prerequisite along with all. name "*.md" ) # Render all mermaid graphs in any. name "render-md-mermaid.sh" ) $(shell find. That way, graphs are rendered without having to give it a single thought. The script can be invoked manually, but I’ve found it handy to invoke it in a make workflow. ![]()
0 Comments
Leave a Reply. |