Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove old docs task.

  • Loading branch information...
commit dd2f2f8dcc13918dad940c9d6e9126fec0a3b715 1 parent 60d127d
@fabiopelosin fabiopelosin authored
Showing with 0 additions and 45 deletions.
  1. +0 −1  .gitignore
  2. +0 −1  rakelib/doc
  3. +0 −43 rakelib/doc.rake
View
1  .gitignore
@@ -22,4 +22,3 @@ spec/fixtures/vcr
.yardoc
/doc
.rbx/
-rakelib/doc
1  rakelib/doc
@@ -1 +0,0 @@
-Subproject commit e3d65416e8678c4621c0fa22d90355c805f0b6a2
View
43 rakelib/doc.rake
@@ -1,43 +0,0 @@
-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'
-
-
-
-
Please sign in to comment.
Something went wrong with that request. Please try again.