Commit dd2f2f8d authored by Fabio Pelosin's avatar Fabio Pelosin

Remove old docs task.

parent 60d127db
......@@ -22,4 +22,3 @@ spec/fixtures/vcr
.yardoc
/doc
.rbx/
rakelib/doc
\ No newline at end of file
doc @ e3d65416
Subproject commit e3d65416e8678c4621c0fa22d90355c805f0b6a2
require 'pathname'
ROOT = Pathname.new(File.expand_path('../../', __FILE__))
require 'active_support'
namespace :doc do
task :load do
unless (ROOT + 'rakelib/doc').exist?
Dir.chdir(ROOT + 'rakelib') do
sh "git clone git@github.com:CocoaPods/cocoapods.github.com.git doc"
end
end
require ROOT + 'rakelib/doc/lib/doc'
end
desc 'Update vendor doc repo'
task :update do
Dir.chdir(ROOT + 'rakelib/doc') do
sh "git checkout **/*.html"
sh "git pull"
end
end
desc 'Generate docs and push to remote'
task :release => [:update, :generate] do
Dir.chdir(ROOT + 'rakelib/doc') do
sh "git add **/*.html"
sh "git commit -m 'Update documentation [CocoaPods]'"
sh "git push"
end
end
task :generate => :load do
generator = Pod::Doc::Gem.new(ROOT + 'cocoapods.gemspec', 'Pod')
generator.render
sh "open '#{generator.output_file}'"
end
end
desc "Genereates the documentation"
task :doc => 'doc:generate'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment