mersinvald / aquamarine

Inline diagrams for rustdoc with mermaid.js
MIT License
507 stars 28 forks source link

allow filepath in macro attrs #26

Closed drbh closed 1 year ago

drbh commented 2 years 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 2 years ago

@mersinvald bump 🙂