From 87e64f67f353ed0d9d570f80bf37a9b7cea444e5 Mon Sep 17 00:00:00 2001 From: Abhijit Menon-Sen Date: Wed, 17 Jul 2013 14:20:53 +0530 Subject: [PATCH] A tiny patch to disable live preview (#718) --- bin/gollum | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/gollum b/bin/gollum index 931a7660..bd50d9f6 100755 --- a/bin/gollum +++ b/bin/gollum @@ -19,7 +19,7 @@ require 'gollum' exec = {} options = { 'port' => 4567, 'bind' => '0.0.0.0' } -wiki_options = {} +wiki_options = { :live_preview => false } opts = OptionParser.new do |opts| opts.banner = help @@ -73,6 +73,10 @@ opts = OptionParser.new do |opts| wiki_options[:live_preview] = false end + opts.on("--live-preview", "Enables livepreview.") do + wiki_options[:live_preview] = true + end + opts.on("--mathjax", "Enables mathjax.") do wiki_options[:mathjax] = true end