From b1fef165c433b990ae7fac9c1b84590f4be67392 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Wed, 29 Dec 2021 20:07:30 +0100 Subject: [PATCH] point_cloud_library: attribution --- assets/javascripts/templates/pages/about_tmpl.coffee | 5 +++++ lib/docs/scrapers/point_cloud_library.rb | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee b/assets/javascripts/templates/pages/about_tmpl.coffee index 97a24878..f9925f53 100644 --- a/assets/javascripts/templates/pages/about_tmpl.coffee +++ b/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.
© 2012–, Open Perception, Inc.', + 'BSD', + 'https://raw.githubusercontent.com/PointCloudLibrary/pcl/master/LICENSE.txt' ], [ 'Pony', '2016-2020, The Pony Developers & 2014-2015, Causality Ltd.', diff --git a/lib/docs/scrapers/point_cloud_library.rb b/lib/docs/scrapers/point_cloud_library.rb index 138c57a5..a30d1d65 100644 --- a/lib/docs/scrapers/point_cloud_library.rb +++ b/lib/docs/scrapers/point_cloud_library.rb @@ -21,13 +21,18 @@ module Docs # anchor such as 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 + © 2009–2012, Willow Garage, Inc.
+ © 2012–, Open Perception, Inc.
+ 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_/]