History

Merge pull request #1694 from ardiya/pcl_improve_clean_html

Improve point_cloud_library clean_html

Simon Legner committed 3 years ago

Commit c05b0092 parents da67fed 7c57edb2 files · +13 −1Browse files

Unified · Split

2 files
  1. lib/docs/filters/point_cloud_library/clean_html.rb +12 −0
  2. lib/docs/scrapers/point_cloud_library.rb +1 −1
lib/docs/filters/point_cloud_library/clean_html.rb+12−0
@@ -5,6 +5,18 @@ module Docs · 4 unmodified lines
5 @doc = at_css('.contents')5 @doc = at_css('.contents')
6 css('.dynheader.closed').remove6 css('.dynheader.closed').remove
7 css('.permalink').remove7 css('.permalink').remove
8 css('.memSeparator').remove
9
10 # Change div.fragment to C++ code with syntax highlight
11 css('div.fragment').each do |node|
12 node.name = 'pre'
13 node['data-language'] = 'cpp'
14 node_content = ""
15 node.css('div').each do |inner_node|
16 node_content += inner_node.text + "\n"
17 end
18 node.content = node_content
19 end
8 doc20 doc
9 end21 end
10 end22 end
lib/docs/scrapers/point_cloud_library.rb+1−1
@@ -9,7 +9,7 @@ module Docs · 8 unmodified lines
9 self.initial_paths = [9 self.initial_paths = [
10 "https://pointclouds.org/documentation/hierarchy.html"10 "https://pointclouds.org/documentation/hierarchy.html"
11 ]11 ]
12 self.release = '1.12.1'12 self.release = '1.13.0'
13 13
14 self.links = {14 self.links = {
15 home: 'https://pointclouds.org/',15 home: 'https://pointclouds.org/',

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t