pdoc tasks publishe APIs in api.rubyonrails.org

This commit is contained in:
Xavier Noria 2010-06-16 22:39:13 +02:00
parent 01f3f0dbae
commit 2aa4e5f3fa
5 changed files with 5 additions and 5 deletions

View File

@ -128,7 +128,7 @@ end
desc "Publish API docs for Rails as a whole and for each component" desc "Publish API docs for Rails as a whole and for each component"
task :pdoc => :rdoc do task :pdoc => :rdoc do
require 'rake/contrib/sshpublisher' require 'rake/contrib/sshpublisher'
Rake::SshDirPublisher.new("wrath.rubyonrails.org", "public_html/api", "doc/rdoc").upload Rake::SshDirPublisher.new("rails@api.rubyonrails.org", "public_html/api", "doc/rdoc").upload
PROJECTS.each do |project| PROJECTS.each do |project|
system %(cd #{project} && #{$0} pdoc) system %(cd #{project} && #{$0} pdoc)
end end

View File

@ -54,5 +54,5 @@ end
desc "Publish the API documentation" desc "Publish the API documentation"
task :pdoc => [:rdoc] do task :pdoc => [:rdoc] do
require 'rake/contrib/sshpublisher' require 'rake/contrib/sshpublisher'
Rake::SshDirPublisher.new("wrath.rubyonrails.org", "public_html/am", "doc").upload Rake::SshDirPublisher.new("rails@api.rubyonrails.org", "public_html/am", "doc").upload
end end

View File

@ -223,5 +223,5 @@ end
desc "Publish the API documentation" desc "Publish the API documentation"
task :pdoc => [:rdoc] do task :pdoc => [:rdoc] do
require 'rake/contrib/sshpublisher' require 'rake/contrib/sshpublisher'
Rake::SshDirPublisher.new("wrath.rubyonrails.org", "public_html/ar", "doc").upload Rake::SshDirPublisher.new("rails@api.rubyonrails.org", "public_html/ar", "doc").upload
end end

View File

@ -84,5 +84,5 @@ end
desc "Publish the API documentation" desc "Publish the API documentation"
task :pdoc => [:rdoc] do task :pdoc => [:rdoc] do
require 'rake/contrib/sshpublisher' require 'rake/contrib/sshpublisher'
Rake::SshDirPublisher.new("wrath.rubyonrails.org", "public_html/ar", "doc").upload Rake::SshDirPublisher.new("rails@api.rubyonrails.org", "public_html/ar", "doc").upload
end end

View File

@ -49,5 +49,5 @@ end
desc "Publish the API documentation" desc "Publish the API documentation"
task :pdoc => [:rdoc] do task :pdoc => [:rdoc] do
require 'rake/contrib/sshpublisher' require 'rake/contrib/sshpublisher'
Rake::SshDirPublisher.new("wrath.rubyonrails.org", "public_html/as", "doc").upload Rake::SshDirPublisher.new("rails@api.rubyonrails.org", "public_html/as", "doc").upload
end end