Mermaid
-
Build and serve this site locally with a
_config.yml
that does not mentionmermaid
. -
Check that
_site/index.html
contains only two occurrences ofmermaid
orMermaid
(in the navigation) and that the file ends with</div> </body> </html>
. -
Check that the Javascript console does not report any errors when you browse this site.
Version 9.4.3
-
Add the following settings to
_config.yml
:mermaid: version: "9.4.3"
then rebuild and serve this site locally.
-
Check that the Javascript console does not report any errors when you browse this site.
-
Check that the appearance of the following mermaid diagram is as expected:
graph TD; A-->B; A-->C; B-->D; C-->D;
-
Create
_includes/mermaid_config.js
with contents:{ theme: "forest" }
then rebuild and serve this site locally.
-
Check that the appearance of the previous mermaid diagram has changed as expected.
-
Remove or rename
_includes/mermaid_config.js
.
Version 10.1.0
-
Update the mermaid settings in
_config.yml
to:mermaid: version: "10.1.0"
then rebuild and serve this site locally.
-
Check that the Javascript console does not report any errors when you browse this site, and that the appearance of the mermaid diagram above is as expected.
Local mermaid library
Version 9.4.3
-
Download version 9.4.3 of version 9.4.3 of
mermaid.min.js
and version 9.4.3 ofmermaid.min.js.map
to/assets/js/mermaid-9.4.3/
. -
Update the mermaid settings in
_config.yml
to:mermaid: version: "9.4.3" path: "/assets/js/mermaid-9.4.3/mermaid.min.js"
then rebuild and serve this site locally.
-
Check that the Javascript console does not report any errors when you browse this site, and that the appearance of the mermaid diagram above is as expected.
Version 10.1.0
-
Download the entire contents of
mermaid@10.1.0/dist/
(e.g., usingwget -r
). -
Update the mermaid settings in
_config.yml
to:mermaid: version: "10.1.0" path: "/assets/js/mermaid-10.1.0/mermaid.esm.min.mjs"
then rebuild and serve this site locally.
-
Check that the Javascript console does not report any errors when you browse this site, and that the appearance of the mermaid diagram above is as expected.