Commit 85f0aef1 authored by Fabio Pelosin's avatar Fabio Pelosin

[Documentation] Process only header files.

- Usually only the header files are commented.
- The header files don't include private categories.
- Performance gains, as doc generation is quite slow.
parent b9ea5158
......@@ -42,7 +42,7 @@ module Pod
end
def files
@pod.all_specs_source_files.map{ |f| f.relative_path_from(@pod.root).to_s }
@pod.all_specs_public_header_files.map{ |f| f.relative_path_from(@pod.root).to_s }
end
def index_file
......
......@@ -125,9 +125,10 @@ module Pod
# Method used by documentation generator. It return the source files
# of all the specs.
def all_specs_source_files
def all_specs_public_header_files
#TODO: merge with #221
specs = top_specification.recursive_subspecs << top_specification
specs.map { |s| expanded_paths(s.source_files, :glob => '*.{h,m,mm,c,cpp}') }.compact.flatten.uniq
specs.map { |s| expanded_paths(s.source_files, :glob => '*.{h}') }.compact.flatten.select { |f| f.extname == '.h' }.uniq
end
# Integration methods
......
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