Skip to content

Commit

Permalink
Use a plugin to read data files from gem
Browse files Browse the repository at this point in the history
  - jekyll-data v1.x
  - jekyll 3.5 automatically requires a theme's runtime deps
  - jekyll v3.5.0 had bugs. Hence use v3.5.1 and beyond
  • Loading branch information
ashmaroli committed Jul 19, 2017
1 parent 5843de9 commit 97b37ba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 584 deletions.
1 change: 1 addition & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ task :preview do

ENV["LISTEN_GEM_DEBUGGING"] = "1"
listener = Listen.to(
base.join("_data"),
base.join("_includes"),
base.join("_layouts"),
base.join("_sass"),
Expand Down
5 changes: 3 additions & 2 deletions minimal-mistakes-jekyll.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ Gem::Specification.new do |spec|
spec.metadata["plugin_type"] = "theme"

spec.files = `git ls-files -z`.split("\x0").select do |f|
f.match(%r{^(assets|_(includes|layouts|sass)/|(LICENSE|README|CHANGELOG)((\.(txt|md|markdown)|$)))}i)
f.match(%r{^(assets|_(data|includes|layouts|sass)/|(LICENSE|README|CHANGELOG)((\.(txt|md|markdown)|$)))}i)
end

spec.add_runtime_dependency "jekyll", "~> 3.4"
spec.add_runtime_dependency "jekyll", "~> 3.5", ">= 3.5.1"
spec.add_runtime_dependency "jekyll-paginate", "~> 1.1"
spec.add_runtime_dependency "jekyll-sitemap", "~> 1.0"
spec.add_runtime_dependency "jekyll-gist", "~> 1.4"
spec.add_runtime_dependency "jekyll-feed", "~> 0.9.2"
spec.add_runtime_dependency "jekyll-data", "~> 1.0"
spec.add_runtime_dependency "jemoji", "~> 0.8"

spec.add_development_dependency "bundler", "~> 1.12"
Expand Down
Loading

0 comments on commit 97b37ba

Please sign in to comment.