mirror of
https://github.com/discourse/discourse.git
synced 2026-08-04 10:39:43 +08:00
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.
13 lines
434 B
Ruby
Vendored
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"
|