Sha256: dd8fd1c644eaa1ccdb9c427acf860839e622d60840b55cffe9b6d9bc488609de
Contents?: true
Size: 713 Bytes
Versions: 2
Compression:
Stored size: 713 Bytes
Contents
#! /usr/bin/env ruby # frozen_string_literal: true def relative_to_root(path) File.expand_path(path, File.dirname(File.dirname(__FILE__))) end require "jekyll" require relative_to_root("lib/jekyll-smartify.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jekyll-commonmark-1.3.1 | script/console |
jekyll-commonmark-1.3.0 | script/console |