Skip to content

midnightSuyama/gitbook-plugin-flowchart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

flowchart.js plugin for GitBook

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published