point_cloud_library.rb 969 B

1234567891011121314151617181920212223242526272829303132
  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. self.links = {
  9. home: 'https://pointclouds.org/',
  10. code: 'https://github.com/PointCloudLibrary/pcl'
  11. }
  12. html_filters.push 'point_cloud_library/entries'
  13. # Remove the `clean_text` because Doxygen are actually creating empty
  14. # anchor such as <a id="asd"></a> to do anchor link.. and that anchor
  15. # will be removed by clean_text
  16. self.text_filters = FilterStack.new
  17. text_filters.push 'images', 'inner_html'
  18. def get_latest_version(opts)
  19. get_latest_github_release('PointCloudLibrary', 'pcl', opts)
  20. end
  21. options[:container] = '.contents'
  22. # Skip source code since it doesn't provide any useful docs
  23. options[:skip_patterns] = [/_source/]
  24. end
  25. end