Skip to content

Latest commit

 

History

History
52 lines (31 loc) · 1.24 KB

README.rdoc

File metadata and controls

52 lines (31 loc) · 1.24 KB

Guard::Nanoc

Nanoc guard automatically rebuilds nanoc site files when modified (like nanoc watch)

  • Compatible with Nanoc 3.1.x

  • Tested on Ruby 1.8.6, 1.8.7 & 1.9.2.

Install

Please be sure to have guard installed before continue.

Install the gem:

gem install guard-nanoc

Add it to your Gemfile (inside test group):

gem 'guard-nanoc'

Add guard definition to your Guardfile by running this command:

guard init nanoc

Usage

Please read guard usage doc

Guardfile

Nanoc guard can be really be adapated to all kind of projects. Please read guard doc for more info about Guardfile DSL.

Standard ruby gems

guard 'nanoc' do
  watch('^config.yaml')
  watch('^Rules')
  watch('^layouts/*')
  watch('^content/**/*')
end

Development

Pull requests are very welcome! Make sure your patches are well tested. Please create a topic branch for every separate change you make.

Authors

Yann Lugrin