Rebuild documentation using Rocco
1c9a9fa9d8
Add run_on option to specify when to run the rocco command |
||
---|---|---|
lib/guard | ||
spec | ||
.gitignore | ||
.travis.yml | ||
Gemfile | ||
guard-rocco.gemspec | ||
Guardfile | ||
Rakefile | ||
README.md |
It's a Guard for the Rocco documentation system!
# default values
guard 'rocco', :run_on => [:start, :change], :dir => 'doc', :stylesheet => 'http://jashkenas.github.com/docco/resources/docco.css' do
watch(%r{^app/.*\.(rb|coffee)$})
watch(%r{^lib/.*\.rb$})
end
Options:
:run_on
specifies when to update the docs:start
- run on all documentation when the guard starts: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!