Sha256: e015899cc0166d8ea14c801acb51f1f90d5528dc5e1b916cc26ae3e2b717cc6a

Contents?: true

Size: 684 Bytes

Versions: 17

Compression:

Stored size: 684 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-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

17 entries across 17 versions & 1 rubygems

Version Path
jekyll-sitemap-1.1.1 script/console
jekyll-sitemap-1.1.0 script/console
jekyll-sitemap-1.0.0 script/console
jekyll-sitemap-0.13.0 script/console
jekyll-sitemap-0.12.0 script/console
jekyll-sitemap-0.11.0 script/console
jekyll-sitemap-0.10.0 script/console
jekyll-sitemap-0.9.0 script/console
jekyll-sitemap-0.8.1 script/console
jekyll-sitemap-0.8.0 script/console
jekyll-sitemap-0.7.0 script/console
jekyll-sitemap-0.6.3 script/console
jekyll-sitemap-0.6.2 script/console
jekyll-sitemap-0.6.1 script/console
jekyll-sitemap-0.6.0 script/console
jekyll-sitemap-0.5.1 script/console
jekyll-sitemap-0.5.0 script/console