Function aquamarine_demo_crate::example_load_from_file
source · pub fn example_load_from_file()
Expand description
A diagram can be loaded from a file as well!
graph LR
s([Source]) --> a[[aquamarine]]
r[[rustdoc]] --> f([Docs w/ Mermaid!])
subgraph rustc[Rust Compiler]
a -. "load diagram_0.mermaid" .-> r
end
Reduce clutter in your doc comments, when a diagram is big enough.
You can include multiple diagrams in a single doc comment, using the macro-like syntax include_mmd!("/path/to/diagram.mmd")
graph LR
A[Square Rect] -- Link text --> B((Circle))
A --> C(Round Rect)
B --> D{Rhombus}
C --> D
Note: indlude_mmd!
syntax is only supported inside doc comments