Skip to content

a Octopress (or Jekyll) plugin which convert a graphviz source code to a svg element with an alternative text for HTML5.

Notifications You must be signed in to change notification settings

kui/octopress-graphviz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Jekyll/Octopress Graphviz Plugin

a Jekyll/Octopress plugin which convert a graphviz source code to a svg element with an alternative text for HTML5.

Example

if you write:

{% graph non-directed graph %}
a -- b
b -- c
c -- a
{% endgraph %}

then it's converted to:

<svg role="img" aria-label="non-directed graph" width="89pt" height="188pt" viewBox="0.00 0.00 89.00 188.00">
<title>non-directed graph</title>
<desc>graph "non-directed graph" { 
a -- b
b -- c
c -- a
}</desc>
 
<g id="graph1" class="graph" transform="scale(1 1) rotate(0) translate(4 184)">
 
 ...

</g>
</svg>

a graphviz result

Installation

In your terminal:

cd <your_octopress>/plugins
wget https://raw.github.com/kui/octopress-graphviz/master/graphviz_block.rb

About

a Octopress (or Jekyll) plugin which convert a graphviz source code to a svg element with an alternative text for HTML5.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages