Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
dd2f2f8d
Commit
dd2f2f8d
authored
Dec 06, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove old docs task.
parent
60d127db
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
46 deletions
+0
-46
.gitignore
.gitignore
+0
-2
doc
rakelib/doc
+0
-1
doc.rake
rakelib/doc.rake
+0
-43
No files found.
.gitignore
View file @
dd2f2f8d
...
@@ -22,4 +22,3 @@ spec/fixtures/vcr
...
@@ -22,4 +22,3 @@ spec/fixtures/vcr
.yardoc
.yardoc
/doc
/doc
.rbx/
.rbx/
rakelib/doc
\ No newline at end of file
doc
@
e3d65416
Subproject commit e3d65416e8678c4621c0fa22d90355c805f0b6a2
rakelib/doc.rake
deleted
100644 → 0
View file @
60d127db
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'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment