imathis / guard-jekyll-plus

A Guard plugin for smarter Jekyll builds
MIT License
63 stars 16 forks source link

Document `source` tweaking #40

Open thbar opened 9 years ago

thbar commented 9 years ago

Not sure if this is normal or not, but here is a little something I had issues with.

My setup involves a main folder with a Gemfile and guardfile, and the Jekyll source itself is one folder below, under src (including src/_config.yml).

To make this work with guard-jekyll-plus, I had to provide this:

guard 'jekyll-plus', serve: true, source: 'src', config: ['src/_config.yml'] do
  # SNIP
end

Specifying only the config key wouldn't work and leads to issues with layouts not found at build time. Giving only source did not seem to work either.

I'm not sure if I handled this incorrectly, but if I did, maybe this is worth documenting somewhere to save time to others?

Thanks for your otherwise great extension :-)

e2 commented 9 years ago

It's probably a bug, if you have a 'source' option in your '_config.yml' (since jekyll-plus should load the :source from there).

What does your 'src/_config.yml' look like?