Add option to configure PlantUML endpoint
This commit is contained in:
committed by
Daniele Grandini
parent
6b20c5df71
commit
72c8e1aff3
+8
-1
@@ -162,7 +162,6 @@ MSG
|
|||||||
end
|
end
|
||||||
|
|
||||||
opts.separator ""
|
opts.separator ""
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Read command line options into `options` hash
|
# Read command line options into `options` hash
|
||||||
@@ -208,6 +207,7 @@ if options[:irb]
|
|||||||
if !wiki.exist? then
|
if !wiki.exist? then
|
||||||
raise Gollum::InvalidGitRepositoryError
|
raise Gollum::InvalidGitRepositoryError
|
||||||
end
|
end
|
||||||
|
|
||||||
puts
|
puts
|
||||||
puts "Loaded Gollum wiki at:"
|
puts "Loaded Gollum wiki at:"
|
||||||
puts "#{File.expand_path(gollum_path).inspect}"
|
puts "#{File.expand_path(gollum_path).inspect}"
|
||||||
@@ -243,6 +243,13 @@ else
|
|||||||
require cfg
|
require cfg
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if wiki_options[:plantuml_url]
|
||||||
|
Gollum::Filter::PlantUML.configure do |config|
|
||||||
|
puts "Using #{wiki_options[:plantuml_url]} as PlantUML endpoint"
|
||||||
|
config.url = wiki_options[:plantuml_url]
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
base_path = wiki_options[:base_path]
|
base_path = wiki_options[:base_path]
|
||||||
|
|
||||||
if base_path.nil?
|
if base_path.nil?
|
||||||
|
|||||||
Reference in New Issue
Block a user