From 131f8314794381398884dbee79c723e32aabc56d Mon Sep 17 00:00:00 2001 From: Phil Scherer Date: Thu, 12 Nov 2020 19:03:25 +0000 Subject: [PATCH] Update CMake scrapers --- lib/docs/filters/cmake/entries.rb | 1 + lib/docs/scrapers/cmake.rb | 26 +++++++++++++++++++++++--- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/lib/docs/filters/cmake/entries.rb b/lib/docs/filters/cmake/entries.rb index 2d64279b..d48a6a2b 100644 --- a/lib/docs/filters/cmake/entries.rb +++ b/lib/docs/filters/cmake/entries.rb @@ -10,6 +10,7 @@ module Docs TYPE_BY_DIR = { 'command' => 'Commands', + 'guide' => 'Guides', 'manual' => 'Manual', 'module' => 'Modules', 'policy' => 'Policies', diff --git a/lib/docs/scrapers/cmake.rb b/lib/docs/scrapers/cmake.rb index 52e5e87a..3b002f28 100644 --- a/lib/docs/scrapers/cmake.rb +++ b/lib/docs/scrapers/cmake.rb @@ -16,17 +16,37 @@ module Docs options[:skip_patterns] = [/\Agenerator/, /\Acpack_gen/, /\Ainclude/, /\Arelease/] options[:attribution] = <<-HTML - © 2000–2019 Kitware, Inc. and Contributors
+ © 2000–2020 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License. HTML + version '3.19' do + self.release = '3.19.0' + self.base_url = "https://cmake.org/cmake/help/v#{self.version}/" + end + + version '3.18' do + self.release = '3.18.4' + self.base_url = "https://cmake.org/cmake/help/v#{self.version}/" + end + + version '3.17' do + self.release = '3.17.5' + self.base_url = "https://cmake.org/cmake/help/v#{self.version}/" + end + + version '3.16' do + self.release = '3.16.9' + self.base_url = "https://cmake.org/cmake/help/v#{self.version}/" + end + version '3.15' do - self.release = '3.15.2' + self.release = '3.15.7' self.base_url = "https://cmake.org/cmake/help/v#{self.version}/" end version '3.14' do - self.release = '3.14.6' + self.release = '3.14.7' self.base_url = "https://cmake.org/cmake/help/v#{self.version}/" end