mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-07 12:53:27 +08:00
Currently all our preinstalled plugins use the default "gear" icon from fontawesome — this PR adds unique icons for each of them using a new plugin API method, `setAdminPluginIcon()`. Plugins without an icon defined will still fall back to the gear icon. Before: <img width="250" alt="image" src="https://github.com/user-attachments/assets/06b5c6e7-0aae-44f8-b8ee-1486b98bfc6b" /> After: <img width="250" alt="image" src="https://github.com/user-attachments/assets/46d45d4b-6c75-4473-ae53-1a0e71c4d6fb" /> |
||
|---|---|---|
| .. | ||
| assets | ||
| config | ||
| public/javascripts | ||
| spec/system | ||
| .prettierignore | ||
| CHANGELOG.md | ||
| LICENSE.md | ||
| package.json | ||
| plugin.rb | ||
| README.md | ||
| tsconfig.json | ||
| upgrade-viz-js.rb | ||
discourse-graphviz
https://meta.discourse.org/t/graphviz-plugin/97554/
Adds Graphviz capability to discourse.
Topic discussing the plugin itself can be found here: https://meta.discourse.org/t/graphviz-plugin/97554
Usage
See the Graphviz site for documentation and examples.
To use with a discourse post, wrap the chart defintion in graphviz tags and define engine (if not defined, it will default to dot) like this:
[graphviz engine=neato]
graph {
a -- b;
b -- c;
a -- c;
d -- c;
e -- c;
e -- a;
}
[/graphviz]