Add commandline option for disabling livepreview

This commit is contained in:
Arran Cudbard-Bell
2012-06-07 18:05:15 +02:00
parent 8554654ee9
commit 3c709a27ac
+4
View File
@@ -57,6 +57,10 @@ opts = OptionParser.new do |opts|
wiki_options[:ref] = ref
end
opts.on("--no-live-preview", "Disables livepreview.") do
wiki_options[:live_preview] = false
end
opts.on("--no-mathjax", "Disables mathjax.") do
options['mathjax'] = false
end