From e3211bb9c345e2cf9a2c2555f6f5d2c4b4166fd5 Mon Sep 17 00:00:00 2001 From: Mike Lubinets Date: Wed, 13 Dec 2023 12:54:06 +0400 Subject: [PATCH] hotfix: malformed string literals in mermaid.js diagrams of a demo crate --- demo/Cargo.toml | 2 +- demo/diagram.mermaid | 2 +- demo/src/lib.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/demo/Cargo.toml b/demo/Cargo.toml index 9c09f21..c03aea8 100644 --- a/demo/Cargo.toml +++ b/demo/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "aquamarine-demo-crate" -version = "0.3.1" +version = "0.3.2" authors = ["Mike Lubinets "] description = "A demo crate for aquamarine -- the mermaid.js integration for rustdoc" keywords = ["proc_macro", "docs", "rustdoc", "mermaid", "diagram"] diff --git a/demo/diagram.mermaid b/demo/diagram.mermaid index 62ac7ef..4162c17 100644 --- a/demo/diagram.mermaid +++ b/demo/diagram.mermaid @@ -2,5 +2,5 @@ graph LR s([Source]) --> a[[aquamarine]] r[[rustdoc]] --> f([Docs w/ Mermaid!]) subgraph rustc[Rust Compiler] - a -. load diagram.mermaid .-> r + a -. "load diagram.mermaid" .-> r end \ No newline at end of file diff --git a/demo/src/lib.rs b/demo/src/lib.rs index 480b28a..f39afe0 100644 --- a/demo/src/lib.rs +++ b/demo/src/lib.rs @@ -10,7 +10,7 @@ /// s([Source]) --> a[[aquamarine]] /// r[[rustdoc]] --> f([Docs w/ Mermaid!]) /// subgraph rustc[Rust Compiler] -/// a -. inject mermaid.js .-> r +/// a -. "inject mermaid.js" .-> r /// end /// ``` /// @@ -46,4 +46,4 @@ pub fn example_with_styling() {} /// Reduce clutter in your doc comments, when a diagram is big enough /// /// **Note:** diagrams loaded form file are always placed in the bottom of the doc section -pub fn example_foad_from_file() {} +pub fn example_load_from_file() {}