Ver código fonte

point_cloud_library: attribution

Simon Legner 3 anos atrás
pai
commit
b1fef165c4

+ 5 - 0
assets/javascripts/templates/pages/about_tmpl.coffee

@@ -657,6 +657,11 @@ credits = [
     '2005-2017 Sebastian Bergmann',
     'CC BY',
     'https://creativecommons.org/licenses/by/3.0/'
+  ], [
+    'PointCloudLibrary',
+    '2009–2012, Willow Garage, Inc.<br>&copy; 2012–, Open Perception, Inc.',
+    'BSD',
+    'https://raw.githubusercontent.com/PointCloudLibrary/pcl/master/LICENSE.txt'
   ], [
     'Pony',
     '2016-2020, The Pony Developers & 2014-2015, Causality Ltd.',

+ 6 - 1
lib/docs/scrapers/point_cloud_library.rb

@@ -21,13 +21,18 @@ module Docs
     # anchor such as <a id="asd"></a> to do anchor link.. and that anchor
     # will be removed by clean_text
     self.text_filters = FilterStack.new
-    text_filters.push 'images', 'inner_html'
+    text_filters.push 'images', 'inner_html', 'attribution'
 
     def get_latest_version(opts)
       get_latest_github_release('PointCloudLibrary', 'pcl', opts)
     end
 
     options[:container] = '.contents'
+    options[:attribution] = <<-HTML
+      &copy; 2009–2012, Willow Garage, Inc.<br>
+      &copy; 2012–, Open Perception, Inc.<br>
+      Licensed under the BSD License.
+    HTML
 
     # Skip source code since it doesn't provide any useful docs
     options[:skip_patterns] = [/_source/, /namespace/, /h\.html/, /structsvm/, /struct_/, /classopenni/, /class_/]