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
139d0099
Commit
139d0099
authored
May 16, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Generator::Documentation] Use relative paths for output readability.
parent
49730698
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
documentation.rb
lib/cocoapods/generator/documentation.rb
+3
-4
No files found.
lib/cocoapods/generator/documentation.rb
View file @
139d0099
...
@@ -42,11 +42,11 @@ module Pod
...
@@ -42,11 +42,11 @@ module Pod
end
end
def
files
def
files
@pod
.
all_specs_source_files
.
map
(
&
:to_s
)
@pod
.
all_specs_source_files
.
map
{
|
f
|
f
.
relative_path_from
(
@pod
.
root
).
to_s
}
end
end
def
index_file
def
index_file
@pod
.
readme_file
@pod
.
readme_file
.
relative_path_from
(
@pod
.
root
).
to_s
if
@pod
.
readme_file
end
end
def
spec_appledoc_options
def
spec_appledoc_options
...
@@ -66,8 +66,7 @@ module Pod
...
@@ -66,8 +66,7 @@ module Pod
'--keep-intermediate-files'
,
'--keep-intermediate-files'
,
'--exit-threshold'
,
'2'
# appledoc terminates with an exits status of 1 if a warning was logged
'--exit-threshold'
,
'2'
# appledoc terminates with an exits status of 1 if a warning was logged
]
]
index
=
index_file
options
+=
[
'--index-desc'
,
index_file
]
if
index_file
options
+=
[
'--index-desc'
,
index
]
if
index
options
+=
spec_appledoc_options
options
+=
spec_appledoc_options
end
end
...
...
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