mersinvald / aquamarine

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

Enable theming #6

Closed joseluis closed 3 years ago

joseluis commented 3 years ago

Currently it doesn't seem to be possible to configure the theme. E.g.:

/// ```mermaid
/// %%{init: {'theme':'base'}}%%
/// graph LR
///     s([Source]) --> a[[aquamarine]]
///     r[[rustdoc]] --> f([Docs w/ Mermaid!])
///     subgraph rustc[Rust Compiler]
///     a -. inject mermaid.js .-> r
///     end
/// ```
pub fn example() {}