Discourse Graphviz provides the ability to add graphs to posts using the DOT language.
Install Guide
This plugin is bundled with Discourse core. There is no need to install the plugin separately.
Features
This plugin uses the Viz.js library to render graphs.
To embed a graph use [graphviz] [/graphviz] bbcode. Optionally you can define layout engine attributes: [graphviz engine=neato]. If engine is not defined, it defaults to the dot engine.
See the Graphviz site for documentation and more examples.
Example
[graphviz engine=circo]
graph {
a -- b;
b -- c;
c -- d;
d -- e;
e -- g;
a -- g;
a -- c;
a -- d;
a -- e;
b -- d;
b -- e;
b -- g;
c -- e;
c -- g;
d -- g;
}
[/graphviz]
Screenshot
SVG from the preview will get converted to png when post is cooked:
Ce plugin est maintenant inclus dans le cœur de Discourse dans le cadre de Bundling more popular plugins with Discourse core. Si vous auto-hébergez et utilisez le plugin, vous devez le supprimer de votre app.yml avant votre prochaine mise à niveau.