bauglir / Kroki.jl

Supports creating a variety of diagrams through the https://kroki.io service.
https://bauglir.github.io/Kroki.jl/stable
MIT License
79 stars 3 forks source link

Working Examples #8

Closed usmcamp0811 closed 2 years ago

usmcamp0811 commented 2 years ago

I just stumbled on this and Kroki and it sounds neat! But I. Having a hard time getting anything working. Can I get a working example of how to make a diagram and output an svg?

Thanks

bauglir commented 2 years ago

Adding examples, and getting back to/updating this package, has been on my to-do list for a really long time. If you can give me some insight into the context you'd like to use it in that'd be very helpful. I can then prioritize writing something targeted towards that. Some examples:

Note that you will not always have to explicitly write out to a file. If you're in the context of Pluto.jl or Documenter.jl, diagrams should automatically as, typically, SVG.

bauglir commented 2 years ago

Not sure why I didn't think about Kroki.render, which will probably be exported in an upcoming version, but that's a lot easier than the sprint approach... I've updated the example above.

A, more or less accurate, overview of acceptable output formats is available on Kroki's website.