mirror of https://github.com/freeCodeCamp/devdocs
commit
6ca82ce196
@ -0,0 +1,12 @@
|
||||
module Docs
|
||||
class PointCloudLibrary
|
||||
class CleanHtmlFilter < Filter
|
||||
def call
|
||||
@doc = at_css('.contents')
|
||||
css('.dynheader.closed').remove
|
||||
css('.permalink').remove
|
||||
doc
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
@ -0,0 +1,45 @@
|
||||
module Docs
|
||||
class PointCloudLibrary
|
||||
class EntriesFilter < Docs::EntriesFilter
|
||||
def get_type
|
||||
group = at_css('.title .ingroups')
|
||||
return group.content unless group.nil?
|
||||
name = get_name
|
||||
return 'pcl' unless name.match(/^pcl::.*::/)
|
||||
name.gsub(/^pcl::/, '').gsub(/::.*/, '')
|
||||
end
|
||||
|
||||
def get_name
|
||||
at_css('.title').content.gsub(/[<(].*/, '')
|
||||
end
|
||||
|
||||
def additional_entries
|
||||
# Only add additional_entries from PointCloudLibrary modules (group__*.html)
|
||||
return [] if not slug.include?("group")
|
||||
entries = []
|
||||
|
||||
css('table.memberdecls td.memItemRight').map do |node|
|
||||
href = node.at_css("a").attr('href')
|
||||
if href.index("#").nil? then
|
||||
href += "#"
|
||||
end
|
||||
|
||||
# Skip page that's not crawled
|
||||
# TODO: Sync this with options[:skip_patterns] in point_cloud_library.rb
|
||||
if href.include?("namespace") || href.include?("structsvm") || href.include?("classopenni") then
|
||||
next
|
||||
end
|
||||
|
||||
# Only add function and classes documentation
|
||||
doxygen_type = node.parent.parent.at_css("tr.heading").text.strip
|
||||
if not(doxygen_type == "Functions" || doxygen_type == "Classes") then
|
||||
next
|
||||
end
|
||||
|
||||
entries << [node.content, href]
|
||||
end
|
||||
entries
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
After Width: | Height: | Size: 494 B |
After Width: | Height: | Size: 894 B |
@ -0,0 +1 @@
|
||||
https://github.com/PointCloudLibrary/pcl/blob/master/pcl.png
|
Loading…
Reference in new issue