Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including gitbook-plugin-flowchart with all npm packages installed. Try it out:

var gitbookPluginFlowchart = require("gitbook-plugin-flowchart")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

gitbook-plugin-flowchart v1.1.0

flowchart.js plugin for GitBook

gitbook-plugin-flowchart

NPM

flowchart.js plugin for GitBook

Installation

$ npm install gitbook-plugin-flowchart

book.json add the plugin

{
  "plugins": ["flowchart"]
}

Configuration

book.json add the flowchart.js options

"pluginsConfig": {
  "flowchart": {
    "line-color": "red"
  }
}

Usage

put in your book block as

{% flowchart %}
st=>start: Start:>http://www.google.com[blank]
e=>end:>http://www.google.com
op1=>operation: My Operation
sub1=>subroutine: My Subroutine
cond=>condition: Yes
or No?:>http://www.google.com
io=>inputoutput: catch something...

st->op1->cond
cond(yes)->io->e
cond(no)->sub1(right)->op1
{% endflowchart %}

Extend the width

{% flowchart width=770 %}
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free