mermaid.cli | Development has been moved to https | Animation library
kandi X-RAY | mermaid.cli Summary
kandi X-RAY | mermaid.cli Summary
Command-line interface for mermaid. This CLI tool takes a mermaid definition file as input and generates svg/png/pdf file as output.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of mermaid.cli
mermaid.cli Key Features
mermaid.cli Examples and Code Snippets
Community Discussions
Trending Discussions on mermaid.cli
QUESTION
I have a simple Sphinx project where I'd like to be able to render my Mermaid charts as png
. To do so, I have installed the mermaid.cli via yarn, but I've not managed to get it to work.
I've tried various combinations:
- I've tried installing globally via npm and yarn, to no luck
- I've tried to install locally in the root folder of my Sphinx project and referring to the .bin
folder as an absolute path in my conf.py - but to no luck
- I am able to use the mmdc from the command prompt as normal
My conf.py is located at C:\Users\marti\Documents\sphinx-test\docs
and contains the below (amongst other things):
ANSWER
Answered 2020-Apr-09 at 18:16Modifying the below lines by adding shell=True
resolved this, credit to Martín Gaitán:
https://github.com/mgaitan/sphinxcontrib-mermaid/blob/master/sphinxcontrib/mermaid.py#L172-L174
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install mermaid.cli
❗️ We do NOT recommend installing it globally because both YARN and NPM could fail to install a command line tool globally properly due to weird permission issues.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page