mersinvald / aquamarine

Inline diagrams for rustdoc with mermaid.js
MIT License
487 stars 25 forks source link

allow filepath in macro attrs #26

Closed drbh closed 1 year ago

drbh commented 1 year ago

related to https://github.com/mersinvald/aquamarine/issues/19

This PR allows a user to specify a path in the macro attributes like

#[cfg_attr(doc, aquamarine, path = "./diagram.md")]

where diagram.md is

graph TD
  Cache --> New
  Worker --> Cache
  App --> Cache
  App --> Worker
drbh commented 1 year ago

@mersinvald bump 🙂