Skip to content

Commit

Permalink
Let's build docs for the decorators too
Browse files Browse the repository at this point in the history
  • Loading branch information
carols10cents committed Apr 1, 2012
1 parent dd8c880 commit ad39e6f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/tasks/pages.rake
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ task :pages => ['docs/.git', :rocco] do
rev = `git rev-parse --short HEAD`.strip
Dir.chdir 'docs' do
sh "git add *.html"
sh "git add models/*.html"
sh "git add app/controllers/*.html"
sh "git add app/decorators/*.html"
sh "git add app/models/*.html"
sh "git add *.css"
sh "git commit -m 'rebuild pages from #{rev}'" do |ok,res|
if ok
Expand Down
4 changes: 3 additions & 1 deletion lib/tasks/rocco.rake
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ begin

desc 'Build rocco docs'
task :rocco
Rocco::make 'docs/', ["app/models/*.rb", "app/controllers/*.rb"]
Rocco::make 'docs/', ["app/models/*.rb",
"app/controllers/*.rb",
"app/decorators/*.rb"]

desc 'Build docs and open in browser for the reading'
task :read => :rocco do
Expand Down

0 comments on commit ad39e6f

Please sign in to comment.