Update documentation to tidy things up and explain run_all option
This commit is contained in:
parent
5411646f44
commit
48f92f4452
22
README.md
22
README.md
@ -1,15 +1,21 @@
|
|||||||
It's a [Guard](http://github.com/guard/guard) for the [Rocco](http://github.com/rtomayko/rocco) documentation system!
|
It's a [Guard](http://github.com/guard/guard) for the [Rocco](http://github.com/rtomayko/rocco) documentation system!
|
||||||
|
|
||||||
guard 'rocco' do
|
``` ruby
|
||||||
watch(%r{^app/.*\.(rb|coffee)$})
|
# default values
|
||||||
watch(%r{^lib/.*\.rb$})
|
guard 'rocco', :run_all => [:start, :change], :dir => 'doc', :stylesheet => 'http://jashkenas.github.com/docco/resources/docco.css' do
|
||||||
end
|
watch(%r{^app/.*\.(rb|coffee)$})
|
||||||
|
watch(%r{^lib/.*\.rb$})
|
||||||
|
end
|
||||||
|
```
|
||||||
Options:
|
Options:
|
||||||
|
|
||||||
* `:dir` specifies the output dir (default `doc`)
|
* `:run_on` specifies when to update the docs
|
||||||
* `:stylesheet` specifies a custom stylesheet to use (default is
|
* `:start` - run on all documentation when the guard starts
|
||||||
http://jashkenas.github.com/docco/resources/docco.css)
|
* `:change` - run when watched files change
|
||||||
|
* `:reload` - run when the guard is reloaded
|
||||||
|
* `:all` - run when running all the guards
|
||||||
|
* `:dir` specifies the output dir
|
||||||
|
* `:stylesheet` specifies a custom stylesheet to use
|
||||||
|
|
||||||
`gem install guard-rocco` or Bundle it up with `gem 'guard-rocco'`. Then `guard init rocco`. Yeah!
|
`gem install guard-rocco` or Bundle it up with `gem 'guard-rocco'`. Then `guard init rocco`. Yeah!
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user