jellyvision / jsdoc-mermaid Goto Github PK
View Code? Open in Web Editor NEWA tool to automagically create flowcharts and diagrams in your jsdocs.
License: MIT License
A tool to automagically create flowcharts and diagrams in your jsdocs.
License: MIT License
I've looked at the implementation of this packages and it looks like all of current Mermaid syntax should be supported, yet, if I generate documentation using things like {{}}
or ([])
or [*]
for flow diagrams, no diagram will be generated or the branch of the graph that uses these conventions will be missing.
If I try using the sequenceDiagram-v2, I get nothing either.
Nothing is mentioned about current limitations of the package so I was expecting all of Mermaid notation to work but... it doesn't.
If that's any help, I'm using jsdoc in combination with better-docs together with their template. Here's what my jsdoc.json looks like:
{
"source": {
"include": ["src"],
"includePattern": "\\.ts$",
"excludePattern": "(node_modules/|docs)"
},
"opts": {
"readme": "README.md",
"recurse": true,
"destination": "docs/",
"template": "node_modules/better-docs",
"verbose": true
},
"tags": {
"allowUnknownTags": true
},
"plugins": [
"plugins/markdown",
"node_modules/better-docs/typescript",
"node_modules/better-docs/category",
"jsdoc-mermaid"
],
"templates": {
"search": true,
"better-docs": {
"name": "...name of my project",
"hideGenerator": true
}
}
}
Hi,
It seems that your npm package is way outdated (3 years ago).
Could you update it with your latest gitHub version?
Thanks!
Cool plugin! I'm using it extensively.
Would be nice if it would also render mermaid charts from the README.md on the "Home" page of the documentation.
* par [Action 1]
* Host->>Client: information
* and [Action 2]
* Host->>Client2: same information
* end
Fails to render in jsdoc for a sequence diagram.
jsdoc-mermaid package version ^1.0.0
jsdoc version ^3.6.6
Mermaid is at version 7.1.2 - can we update this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.