Commit 7710efde authored by Fabio Pelosin's avatar Fabio Pelosin

[Rake] Added docs support.

parent 71d5f234
......@@ -24,5 +24,5 @@ group :documentation do
gem 'yard'
gem 'redcarpet'
gem 'github-markup'
gem 'pygments.rb'
end
......@@ -78,10 +78,14 @@ GEM
hashie (~> 1.2)
multi_json (~> 1.3)
open4 (1.3.0)
posix-spawn (0.3.6)
pry (0.9.10)
coderay (~> 1.0.5)
method_source (~> 0.8)
slop (~> 3.3.1)
pygments.rb (0.3.2)
posix-spawn (~> 0.3.6)
yajl-ruby (~> 1.1.0)
rake (0.9.5)
rb-fsevent (0.9.2)
redcarpet (2.2.2)
......@@ -91,6 +95,7 @@ GEM
webmock (1.8.11)
addressable (>= 2.2.7)
crack (>= 0.1.7)
yajl-ruby (1.1.0)
yard (0.8.3)
PLATFORMS
......@@ -106,6 +111,7 @@ DEPENDENCIES
mocha (~> 0.11.4)
mocha-on-bacon
pry
pygments.rb
rake
rb-fsevent
redcarpet
......
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