Commit 139d0099 authored by Fabio Pelosin's avatar Fabio Pelosin

[Generator::Documentation] Use relative paths for output readability.

parent 49730698
...@@ -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
......
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