mersinvald / aquamarine

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

Aquamarine v0.3.0 always fetching remote #33

Closed frehberg closed 1 year ago

frehberg commented 1 year ago

Previously I proposed a patch read mermaid using relative path, with alternative folder levels "../", "../../", etc.

Sadly this does not work properly, and the web-page is loading mermaid from remote CDN always.

The solution might be to read the folder hierarchy via let rootPath= document .getElementById("rustdoc-vars") .attributes["data-root-path"] .value;

And adding a script element using this relative path, see attached patch.

frehberg commented 1 year ago

this issue is obsolete, instead see ticket #35 migrating to mermaid-v10