From 20445fd37e5cc4980bcced7b9c388f3e31a44bc2 Mon Sep 17 00:00:00 2001 From: Aditya Ardiya Date: Sun, 16 Jan 2022 02:12:01 +0900 Subject: [PATCH 1/2] Improve point_cloud_library clean_html --- lib/docs/filters/point_cloud_library/clean_html.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 From 7c57edb63ebfc8ad012806c3971da8109d27f96c Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Wed, 11 Jan 2023 21:33:47 +0100 Subject: [PATCH 2/2] Update PointCloudLibrary documentation (1.13.0) --- lib/docs/scrapers/point_cloud_library.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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/',