Module: Jekyll::SvgViewer::Config

Defined in:
lib/jekyll/svg_viewer/config.rb

Constant Summary collapse

DEFAULTS =
{
  "assets" => {
    "auto_include" => "auto",
    "cache_bust" => false
  },
  "defaults" => {
    "height" => "600px",
    "class" => "",
    "zoom" => "100",
    "min_zoom" => "25",
    "max_zoom" => "800",
    "zoom_step" => "10",
    "center_x" => nil,
    "center_y" => nil,
    "show_coords" => false,
    "title" => "",
    "caption" => "",
    "controls_position" => "top",
    "controls_buttons" => "both",
    "button_fill" => "",
    "button_border" => "",
    "button_foreground" => "",
    "pan_mode" => "",
    "zoom_mode" => ""
  }
}.freeze

Class Method Summary collapse

Class Method Details

.for(site) ⇒ Object



33
34
35
36
# File 'lib/jekyll/svg_viewer/config.rb', line 33

def for(site)
  config = site.config.fetch("svg_viewer", {})
  Jekyll::Utils.deep_merge_hashes(DEFAULTS, config)
end