Sha256: 2bdb4b540cc5905d6a9669ec74bd954fffbcc681a239099df535cc9fd7e23def

Contents?: true

Size: 1.33 KB

Versions: 5

Compression:

Stored size: 1.33 KB

Contents

# Guard::Nanoc

This is a guard for [nanoc](http://nanoc.ws/).

`Guard` is a framework for listening to filesystem changes and acting upon them. `Guard::Nanoc` is a plugin for Guard that recompiles Nanoc sites on changes.

## Installation

Add the `guard-nanoc` gem inside the `nanoc` group to your application's Gemfile:

    group :nanoc do
      gem 'guard-nanoc'
    end

Unless your Gemfile already specifies a web server, you'll need one as well:

    gem 'adsf'

Lastly, ensure that Nanoc is at least version 4.3:

    gem 'nanoc', '~> 4.3'

And then execute:

    $ bundle

## Usage

Enter the nanoc site directory for which you want to use guard-nanoc. Create a Guardfile using `guard init`:

    $ bundle exec guard init nanoc

Then run:

    $ bundle exec nanoc live

This will start a web server, like `nanoc view` would, and watch for changes
to the site in the background, like `guard start` would. Whenever you change
a file in the Nanoc site directory now, the site will be recompiled!
Visit `http://localhost:3000` in browser to see it. (In some cases, the port
number might not be `3000`; check what `nanoc live` prints to find out
the actual port number.)

After editing and saving a file, `nanoc live` will recompile the site, but it
is necessary to reload the page in the browser in order to see the new content
that is served by `nanoc live`.

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
guard-nanoc-2.1.6 README.md
guard-nanoc-2.1.5 README.md
guard-nanoc-2.1.3 README.md
guard-nanoc-2.1.2 README.md
guard-nanoc-2.1.1 README.md