Permalink
Browse files

don't build docs for auxiliary modules

  • Loading branch information...
1 parent 66ab362 commit 05e2e4c077e8ba439e9f1ad54b916ac50ad38284 @gnandretta gnandretta committed Jul 2, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 Rakefile
View
@@ -7,7 +7,8 @@ task(:test => :spec)
namespace :doc do
task :readmes do
Dir.glob 'lib/sinatra/*.rb' do |file|
- next if file == 'lib/sinatra/contrib.rb'
+ excluded_files = %w[lib/sinatra/contrib.rb lib/sinatra/capture.rb lib/sinatra/engine_tracking.rb]
+ next if excluded_files.include?(file)
doc = File.read(file)[/^module Sinatra\n( #[^\n]*\n)*/m].scan(/^ *#(?!#) ?(.*)\n/).join("\n")
file = "doc/#{file[4..-4].tr("/_", "-")}.rdoc"
Dir.mkdir "doc" unless File.directory? "doc"

0 comments on commit 05e2e4c

Please sign in to comment.