• Stars
    star
    123
  • Rank 281,944 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 7 years ago
  • Updated almost 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Generate flowchart diagrams for Hexo.

hexo-filter-flowchart

MIT License

npm: Package Quality

Generate flowchart diagrams for Hexo.

Install

npm install --save hexo-filter-flowchart

Usage

This plugin is based on flowchart.js, so you can defined the chart as follow:

```flow
st=>start: Start|past:>http://www.google.com[blank]
e=>end: End:>http://www.google.com
op1=>operation: My Operation|past
op2=>operation: Stuff|current
sub1=>subroutine: My Subroutine|invalid
cond=>condition: Yes
or No?|approved:>http://www.google.com
c2=>condition: Good idea|rejected
io=>inputoutput: catch something...|request

st->op1(right)->cond
cond(yes, right)->c2
cond(no)->sub1(left)->op1
c2(yes)->io->e
c2(no)->op2->e
```

snapshot.svg

Config

In your site's _config.yml:

flowchart:
  # raphael:   # optional, the source url of raphael.js
  # flowchart: # optional, the source url of flowchart.js
  options: # options used for `drawSVG`

Your config will be merged into default config:

{
  "raphael": "https://cdnjs.cloudflare.com/ajax/libs/raphael/2.2.7/raphael.min.js",
  "flowchart": "https://cdnjs.cloudflare.com/ajax/libs/flowchart/1.6.5/flowchart.min.js",
  "options": {
    "scale": 1,
    "line-width": 2,
    "line-length": 50,
    "text-margin": 10,
    "font-size": 12
  }
}

Related

Contributing

Pull requests and stars are highly welcome.

For bugs and feature requests, please create an issue.

More Repositories

1

html-to-image

โœ‚๏ธ Generates an image from a DOM node using HTML5 canvas and SVG.
TypeScript
5,121
star
2

ascii-progress

๐Ÿ“ Ascii progress-bar(s) in the terminal.
TypeScript
197
star
3

hexo-toc

๐Ÿ“– Insert a markdown TOC before posts be rendered.
JavaScript
121
star
4

natsort

๐ŸŒด Javascript natural sort algorithm with unicode support.
TypeScript
74
star
5

logo.svg

Generate a svg logo, then you can embed it in you README.
JavaScript
48
star
6

grunt-restful-mock

๐Ÿš€ A mock server returning random JSON-data.
JavaScript
42
star
7

hexo-theme-formula

๐Ÿ‘™ Hexo theme base on jade and less.
JavaScript
40
star
8

hexo-filter-sequence

Generate UML sequence diagrams for Hexo.
JavaScript
39
star
9

text2svg

๐Ÿ„ Convert text to svg path.
JavaScript
29
star
10

get-cursor-position

๐Ÿพ Get the cursor's current position in your terminal.
C++
27
star
11

hexo-filter-fenced-code

๐ŸŽจ Extend syntax for the native fenced code block.
JavaScript
18
star
12

global-proxy

Set system proxy for mac and windows platform.
TypeScript
14
star
13

run-shared-scripts

Define and run shared npm scripts of a monorepo using Yarn workspaces, Bolt, Lerna or pnpm
JavaScript
12
star
14

grunt-file-hash

๐Ÿ‘พ Generate hashed mapping for your static files.
JavaScript
10
star
15

ansi.js

ansi escape sequences for terminal cursor positioning and coloring.
TypeScript
8
star
16

number-abbreviate

๐ŸŽฑ Abbreviate number to a more human-friendly format (3.6K, 6.8M, etc.)
TypeScript
8
star
17

ocr.it

โฐ A tool to recognize text from images.
TypeScript
6
star
18

configs

Shared configs for my projects
JavaScript
6
star
19

coder-calendar

็จ‹ๅบๅ‘˜็š„่€้ป„ๅŽ†
TypeScript
5
star
20

vscode-action-buttons

A vscode plugin to append action buttons in the status bar.
TypeScript
5
star
21

dataurl-to-blob

Convert the given dataURL to a Blob.
JavaScript
5
star
22

awesome-badge-list

๐Ÿ‘“ A collection awesome badges.
5
star
23

electron-tray-indicator

๐Ÿ“A progress indicator in tray for your Electron app.
TypeScript
4
star
24

spelling-suggestion

Given a name and a list of names that are not equal to the name, return a spelling suggestion if there is one that is close enough.
TypeScript
3
star
25

fetch-client

A convenient fetch client with middleware support.
JavaScript
3
star
26

moment

Moment is a Menu Bar and Notification Center based countdown app to help you remember the most memorable days of your life.
3
star
27

global-proxy-cli

Set system proxy for mac and windows platform.
JavaScript
3
star
28

bot

A GitHub App for me.
TypeScript
3
star
29

licen

Generate license files for your projects.
JavaScript
3
star
30

find-monorepo-root

Find the root directory of a monorepo using Yarn workspaces, Bolt, Lerna or pnpm
TypeScript
3
star
31

bubkoo.com

JavaScript
3
star
32

grunt-underscore-compiler

Compile underscore templates into JavaScript files.
JavaScript
3
star
33

semantic-release-monorepo

Apply semantic-release's automatic publishing to a monorepo.
TypeScript
3
star
34

bubkoo

๐Ÿคนโ€โ™€๏ธ
3
star
35

365dots

Presenting the time progress of a year.
TypeScript
2
star
36

daily-saying

Fetch a daily saying from iciba.com and output it
JavaScript
2
star
37

boxup

Wrap content with a box in the terminal
JavaScript
2
star
38

position-sticky-polyfill

position: sticky; The shim/polyfill!
JavaScript
2
star
39

bubkoo.github.com

bubkoo's blog. Welcome
HTML
2
star
40

reusable-workflows

2
star
41

hexo-theme-flight

Hexo's theme for bubkoo's blog
JavaScript
2
star
42

hexo-filter-sub

Generate subscript (<sub>) tag for Hexo.
JavaScript
1
star
43

boxup-preset

Some presets for boxup.
JavaScript
1
star
44

loadrc

Load runtime configuration files for your module.
JavaScript
1
star
45

toolbox

dotfiles, scripts, etc.
Shell
1
star
46

cert-generator

Generate a root certificate.
JavaScript
1
star
47

semantic-release-config

1
star
48

rsw-b

JavaScript
1
star
49

regexper

Regular expression visualizer using railroad diagrams.
TypeScript
1
star
50

break-string

Break string into lines according to visual width
JavaScript
1
star
51

on-new-line

Hijacks NodeJS Stream and emits events when newline(s) written to the output.
JavaScript
1
star
52

boxup-cli

Create boxes in the terminal
JavaScript
1
star