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
4d5e6cf1
Commit
4d5e6cf1
authored
Mar 18, 2012
by
Eloy Duran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't create a Documentation dir at all if appledoc isn't installed.
parent
14a9efac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
docs_generator.rb
lib/cocoapods/docs_generator.rb
+4
-4
No files found.
lib/cocoapods/docs_generator.rb
View file @
4d5e6cf1
...
@@ -73,6 +73,10 @@ module Pod
...
@@ -73,6 +73,10 @@ module Pod
end
end
def
generate
(
install
=
false
)
def
generate
(
install
=
false
)
unless
self
.
class
.
appledoc_installed?
puts
"[!] Skipping documentation generation because appledoc can't be found."
if
config
.
verbose?
return
end
options
=
generate_appledoc_options
options
=
generate_appledoc_options
options
+=
[
'--output'
,
@target_path
.
to_s
]
options
+=
[
'--output'
,
@target_path
.
to_s
]
options
+=
[
'--keep-intermediate-files'
]
options
+=
[
'--keep-intermediate-files'
]
...
@@ -84,10 +88,6 @@ module Pod
...
@@ -84,10 +88,6 @@ module Pod
end
end
def
appledoc
(
options
)
def
appledoc
(
options
)
unless
self
.
class
.
appledoc_installed?
puts
"
\n
[!] Skipping documentation generation because appledoc can't be found."
unless
config
.
silent?
return
end
arguments
=
[]
arguments
=
[]
arguments
+=
options
arguments
+=
options
arguments
+=
[
'--print-settings'
]
if
config
.
verbose?
arguments
+=
[
'--print-settings'
]
if
config
.
verbose?
...
...
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