From ae7246ccc20c0b3f4d6544f50d1a740b5573bcea Mon Sep 17 00:00:00 2001 From: Esmaeil Vakili Date: Wed, 20 Nov 2024 11:21:30 +0330 Subject: [PATCH] update cmake to v3.31 and add latest version docs to the list --- lib/docs/scrapers/cmake.rb | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/lib/docs/scrapers/cmake.rb b/lib/docs/scrapers/cmake.rb index cf14b562..bb2e4aae 100644 --- a/lib/docs/scrapers/cmake.rb +++ b/lib/docs/scrapers/cmake.rb @@ -16,10 +16,39 @@ module Docs options[:skip_patterns] = [/\Agenerator/, /\Acpack_gen/, /\Ainclude/, /\Arelease/, /tutorial\/(\w*%20)+/] options[:attribution] = <<-HTML - © 2000–2023 Kitware, Inc. and Contributors
+ © 2000–2024 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License. HTML + version do + self.base_url = "https://cmake.org/cmake/help/latest/" + end + + version '3.31' do + self.release = '3.31' + self.base_url = "https://cmake.org/cmake/help/v#{self.version}/" + end + + version '3.30' do + self.release = '3.30' + self.base_url = "https://cmake.org/cmake/help/v#{self.version}/" + end + + version '3.29' do + self.release = '3.29' + self.base_url = "https://cmake.org/cmake/help/v#{self.version}/" + end + + version '3.28' do + self.release = '3.28' + self.base_url = "https://cmake.org/cmake/help/v#{self.version}/" + end + + version '3.27' do + self.release = '3.27' + self.base_url = "https://cmake.org/cmake/help/v#{self.version}/" + end + version '3.26' do self.release = '3.26' self.base_url = "https://cmake.org/cmake/help/v#{self.version}/"