Sha256: 79c1bc7960235a065161d511df178c66e963742dd089c7130b4fbe2c6e0e7314

Contents?: true

Size: 670 Bytes

Versions: 3

Compression:

Stored size: 670 Bytes

Contents

#! /usr/bin/env ruby

def relative_to_root(path)
  File.expand_path(path, File.dirname(__dir__))
end

require "jekyll"
require relative_to_root("lib/jekyll-sitemap.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

3 entries across 3 versions & 2 rubygems

Version Path
jekyll-cloudcannon-schedule-0.1.3 script/console
jekyll-cloudcannon-schedule-0.1.2 script/console
jekyll-sitemap-1.2.0 script/console