Discourse Graphviz

:discourse2: Summary Discourse Graphviz provides the ability to add graphs to posts using the DOT language.
:open_book: 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:

Note

:warning: This plugin is disabled by default, after installing be sure to enable it via site settings.

CHANGELOG

TODO

Last edited by @tobiaseigen 2025-07-16T21:36:06Z

Last checked by @tobiaseigen 2025-07-16T21:13:24Z

Check documentPerform check on document:
47개의 좋아요

:partying_face: 이 플러그인은 이제 Bundling more popular plugins with Discourse core 언급된 대로 Discourse 코어에 번들링되었습니다. 직접 호스팅(self-hosting)을 하고 있으며 이 플러그인을 사용 중이라면, 다음 업그레이드 전에 app.yml에서 해당 플러그인을 제거해야 합니다.

4개의 좋아요

이 플러그인은 discourse의 최신 버전에서 오류가 발생합니다.

앱 재빌드(discourse)를 위해 이 플러그인을 비활성화해야 합니다.

이 기능은 최근에 Discourse 코어에 추가되었습니다

1개의 좋아요