diff --git a/lib/docs/filters/point_cloud_library/clean_html.rb b/lib/docs/filters/point_cloud_library/clean_html.rb index 143345d6..29f1faa0 100644 --- a/lib/docs/filters/point_cloud_library/clean_html.rb +++ b/lib/docs/filters/point_cloud_library/clean_html.rb @@ -5,6 +5,18 @@ module Docs @doc = at_css('.contents') css('.dynheader.closed').remove css('.permalink').remove + css('.memSeparator').remove + + # Change div.fragment to C++ code with syntax highlight + css('div.fragment').each do |node| + node.name = 'pre' + node['data-language'] = 'cpp' + node_content = "" + node.css('div').each do |inner_node| + node_content += inner_node.text + "\n" + end + node.content = node_content + end doc end end diff --git a/lib/docs/scrapers/point_cloud_library.rb b/lib/docs/scrapers/point_cloud_library.rb index f9ce6827..2fdc609d 100644 --- a/lib/docs/scrapers/point_cloud_library.rb +++ b/lib/docs/scrapers/point_cloud_library.rb @@ -9,7 +9,7 @@ module Docs self.initial_paths = [ "https://pointclouds.org/documentation/hierarchy.html" ] - self.release = '1.12.1' + self.release = '1.13.0' self.links = { home: 'https://pointclouds.org/',