Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-07-31 17:36:41 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-07-31 17:37:06 +0300
commit8e13b6a8759a43bb8a90444139b4fbb4205a1b74 (patch)
tree7db3bb37340fbaec54819ff688ecaefc2d406c59 /lib/gitlab/plantuml.rb
parent1ebdda69d61ae26379f8fac27671103374031944 (diff)
Add latest changes from gitlab-org/security/gitlab@16-2-stable-ee
Diffstat (limited to 'lib/gitlab/plantuml.rb')
-rw-r--r--lib/gitlab/plantuml.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/gitlab/plantuml.rb b/lib/gitlab/plantuml.rb
new file mode 100644
index 00000000000..9ec544452fd
--- /dev/null
+++ b/lib/gitlab/plantuml.rb
@@ -0,0 +1,20 @@
+# frozen_string_literal: true
+
+require "asciidoctor_plantuml/plantuml"
+
+module Gitlab
+ module Plantuml
+ class << self
+ def configure
+ Asciidoctor::PlantUml.configure do |conf|
+ conf.url = Gitlab::CurrentSettings.plantuml_url
+ conf.png_enable = Gitlab::CurrentSettings.plantuml_enabled
+ conf.svg_enable = false
+ conf.txt_enable = false
+
+ conf
+ end
+ end
+ end
+ end
+end