Sha256: 1d67986fdbc21ded30f0f09125513adae9bf58cd7f5eece5d68b643b69937d87
Contents?: true
Size: 683 Bytes
Versions: 4
Compression:
Stored size: 683 Bytes
Contents
#! /usr/bin/env ruby def relative_to_root(path) File.expand_path(path, File.dirname(File.dirname(__FILE__))) end require 'jekyll' require relative_to_root('lib/jekyll-figure.rb') require 'pry-debugger' SOURCE_DIR = relative_to_root('spec/fixtures') DEST_DIR = relative_to_root('spec/dest') def source_dir(*files) File.join(SOURCE_DIR, *files) end def dest_dir(*files) File.join(DEST_DIR, *files) end def config(overrides = {}) Jekyll.configuration({ "source" => source_dir, "destination" => dest_dir, "url" => "http://example.org" }).merge(overrides) end def site(configuration = config) Jekyll::Site.new(configuration) end binding.pry
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
jekyll-figure-0.1.0 | script/console |
jekyll-figure-0.0.3 | script/console |
jekyll-figure-0.0.2 | script/console |
jekyll-figure-0.0.1 | script/console |