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

plantuml.rb « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9ec544452fd51a8759c22327a5a422ff531382c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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