-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issue such command 'mermaid' cannot be run #4
Comments
Quoted from @mgaitan
|
Hi @mgaitan,
I have set on $PATH of the OS before. You mean that I set within conf.py such: Then when running it throws out a exception as below: Correct me if I make a wrong way. |
are you sure there is no a missing Do this:
Then try to compile it using vanilla mermaid-cli from the command line
does it work? |
Mermaid command line has been replaced by https://github.com/mermaidjs/mermaid.cli |
I believe the issue I'm facing is similar to this one potentially |
@MatinF please, help to debug this. mermaid's cli is working on your system, outside this plugin? |
Yes I can use it as per their testing examples to convert a mermaid file outside of the Sphinx context using the cli without issues |
give me an example of a command line, please |
I've tested both with global and local install. For example, if I have the below content:
inside a file,
In my Sphinx
I've also raised this separately in issue #42 . best, |
try this. set the command line as a raw string mermaid_cmd = r"C:\Users\marti\Documents\sphinx-test\node_modules\.bin\mmdc" if that fails, try to modify the Popen, here passing and additional argument |
Hi mgaitan, the first part did not work - but adding |
One other, perhaps somewhat related, question: Now that I have the basic functionality working, I was looking to try and add a custom configuration file in order to tweak the width of the charts (in PNG it seems like the width is too small). To do this, I tried to create below addition to the
However, doing so results in below error log:
Should the config be parsed in another way? I figured maybe a simpler alternative would be to use the option |
Was the |
When mermaid_cmd_shell is set to True, or the string value "true" or "True", the argument shell=True will be passed to the Popen call This addresses the issue described in mgaitan#4
Hi everyone,
I have installed sphinxcontrib-mermaid extension as the following guide: https://github.com/mgaitan/sphinxcontrib-mermaid
in a "mermaid-template.rst" file I made a code such below
When running sphinx that threw out a warning such below and the flowchart was not generated:
After that I still installed
mermaid-cli
as the following guide: https://knsv.github.io/mermaid/#mermaid-cli8But the warning was still exists and was not generated the flowchart.
May anyone help me in this case?
P.S:
mermaid template.mmd
ormermaid --help
Thank you for your watching,
Best Regards
The text was updated successfully, but these errors were encountered: