-
My environment:
My plugin configuration of my
Building HTML files using mkdocs works and no errors/warnings are emitted. However, when I preview generated HTML files locally using IntelliJ IDEA & Google Chrome it mermaid diagrams are not rendered properly and the following error message is visible in Google Chrome Developer Tools:
Am I missing something? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 2 replies
-
Judging by the port number, it seems you are using Pycharm's built-in web server or something similar? Try to use Could you make a copy of the call to mermaid.js in the HTML page? |
Beta Was this translation helpful? Give feedback.
-
You are right. I use IntelliJ IDEA Ultimate (w/ Python plugins enabled). Using `mkdocs-serve --clean --strict' generates the following logs to standard output:
As versioned mermaid.min.js I use the file copied from this CDN: cURL equivalent of the GET request that failed with 404 status looks as follows:
|
Beta Was this translation helpful? Give feedback.
-
Thanks. Could you make a copy of the call to mermaid.js in the HTML page? |
Beta Was this translation helpful? Give feedback.
-
I have already provided this call (using cURL syntax) in the previous comment: |
Beta Was this translation helpful? Give feedback.
-
Since the problem does not seem to be related to an issue in Mkdocs-Mermaid2, I am moving this to discussion. My best advice is to follow the troubleshooting guide. |
Beta Was this translation helpful? Give feedback.
-
See new version 1.1.1, in case that solves your issue? |
Beta Was this translation helpful? Give feedback.
-
It turned out that 'mermaid.min.js' has not been added to the git repository. Now it works. Blame it on my error (human error). |
Beta Was this translation helpful? Give feedback.
It turned out that 'mermaid.min.js' has not been added to the git repository.
Now it works.
Blame it on my error (human error).