add --mathjax [CONFIG] to inject root-repo/[CONFIG] file,

which is similar to the behavior of --css and --js.
CONFIG is "mathjax.config.js" by default.
This commit is contained in:
Hardy
2014-08-14 18:00:34 -04:00
parent e65a78a5f5
commit ee55b74898
5 changed files with 19 additions and 3 deletions
+4
View File
@@ -93,6 +93,10 @@ opts = OptionParser.new do |opts|
wiki_options[:mathjax] = true
end
opts.on("--mathjax-config [SOURCE]", "Inject custom mathjax config file. Uses mathjax.config.js from root repository by default") do |source|
wiki_options[:mathjax_config] = source || 'mathjax.config.js'
end
opts.on("--user-icons [SOURCE]", "Set the history user icons. Valid values: gravatar, identicon, none. Default: none.") do |source|
wiki_options[:user_icons] = source
end