0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 07:23:30 +08:00
discourse/plugins/discourse-graphviz/plugin.rb
David Taylor be74f5ff1c
FEATURE: Modernize Graphviz implementation (#40720)
This commit updates the graphviz plugin implementation to match the
official Discourse mermaid theme-component. This moves the rendering to
be 100% client-side and 100% SVG, with a builtin fullscreen view. The
change improves image quality and simplifies the implementation.
Graphviz diagrams will now adopt a fixed 16:9 size in posts, to avoid
any scroll jumps.
2026-06-11 11:42:23 +01:00

13 lines
434 B
Ruby
Vendored

# frozen_string_literal: true
# name: discourse-graphviz
# about: Provides the ability to add graphs to posts using the DOT language.
# meta_topic_id: 97554
# version: 0.0.1
# authors: Maja Komel, Joffrey Jaffeux
# url: https://github.com/discourse/discourse/tree/main/plugins/discourse-graphviz
enabled_site_setting :discourse_graphviz_enabled
register_svg_icon "diagram-project"
register_asset "stylesheets/common/graphviz.scss"