Skip to content

Commit

Permalink
Add task for building rails edge docs
Browse files Browse the repository at this point in the history
Closes rails#81
  • Loading branch information
Zachary Scott committed Jul 14, 2016
1 parent d649e4d commit 6aeb1ef
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,24 @@ end

task :default => :test
task :spec => :test

require 'sdoc'
require 'rdoc/task'

rails = File.expand_path "rails"

directory rails do
sh "git clone --depth=1 https://github.com/rails/rails"
end

namespace :test do
task :rails => rails

RDoc::Task.new(:rails) do |rdoc|
rdoc.rdoc_dir = 'doc/rails'
rdoc.generator = 'sdoc'
rdoc.template = 'rails'

rdoc.rdoc_files.include("rails/")
end
end

0 comments on commit 6aeb1ef

Please sign in to comment.