point_cloud_library.rb 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. module Docs
  2. class PointCloudLibrary < UrlScraper
  3. self.name = 'PointCloudLibrary'
  4. self.type = 'point_cloud_library'
  5. self.slug = 'point_cloud_library'
  6. self.base_url = 'https://pointclouds.org/documentation/'
  7. self.root_path = 'modules.html'
  8. # Add hierarchy.html to crawl all classes*.html that's not reachable from modules.html
  9. self.initial_paths = [
  10. "https://pointclouds.org/documentation/hierarchy.html"
  11. ]
  12. self.release = '1.13.0'
  13. self.links = {
  14. home: 'https://pointclouds.org/',
  15. code: 'https://github.com/PointCloudLibrary/pcl'
  16. }
  17. html_filters.push 'point_cloud_library/entries', 'point_cloud_library/clean_html'
  18. # Remove the `clean_text` because Doxygen are actually creating empty
  19. # anchor such as <a id="asd"></a> to do anchor link.. and that anchor
  20. # will be removed by clean_text
  21. self.text_filters = FilterStack.new
  22. text_filters.push 'images', 'inner_html', 'attribution'
  23. def get_latest_version(opts)
  24. get_latest_github_release('PointCloudLibrary', 'pcl', opts)[4..]
  25. end
  26. options[:attribution] = <<-HTML
  27. &copy; 2009–2012, Willow Garage, Inc.<br>
  28. &copy; 2012–, Open Perception, Inc.<br>
  29. Licensed under the BSD License.
  30. HTML
  31. # Skip source code since it doesn't provide any useful docs
  32. options[:skip_patterns] = [/_source/, /namespace/, /h\.html/, /structsvm/, /struct_/, /classopenni/, /class_/]
  33. end
  34. end