Giter Site home page Giter Site logo

jellyvision / jsdoc-mermaid Goto Github PK

View Code? Open in Web Editor NEW
50.0 19.0 12.0 8 KB

A tool to automagically create flowcharts and diagrams in your jsdocs.

License: MIT License

JavaScript 100.00%
mermaid jsdoc flowchart diagram jsdoc-mermaid javascript apis docs documentation

jsdoc-mermaid's People

Contributors

nothingismagick avatar sixtimes avatar taichunmin avatar vlnk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jsdoc-mermaid's Issues

What are current limitations of this package right now?

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
    }
  }
}

Update NPM package

Hi,

It seems that your npm package is way outdated (3 years ago).
Could you update it with your latest gitHub version?

Thanks!

Mermaid in README.md

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.

using 'par' (parellel events) in sequence diagram

 *     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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.