Skip to content

Commit

Permalink
Merge pull request #2369 from evakili/evakili/update-cmake-to-v3.31
Browse files Browse the repository at this point in the history
Update cmake up to v3.31 and add latest version
  • Loading branch information
simon04 authored Nov 21, 2024
2 parents 13e629e + 3caa196 commit 8fff775
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 2 deletions.
31 changes: 30 additions & 1 deletion lib/docs/scrapers/cmake.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,39 @@ class Cmake < UrlScraper
options[:skip_patterns] = [/\Agenerator/, /\Acpack_gen/, /\Ainclude/, /\Arelease/, /tutorial\/(\w*%20)+/]

options[:attribution] = <<-HTML
&copy; 2000&ndash;2023 Kitware, Inc. and Contributors<br>
&copy; 2000&ndash;2024 Kitware, Inc. and Contributors<br>
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}/"
Expand Down
Binary file modified public/icons/docs/cmake/16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/icons/docs/cmake/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion public/icons/docs/cmake/SOURCE
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://cmake.org/gitweb?p=cmake.git;a=blob_plain;f=Source/QtDialog/CMakeSetup.ico;hb=refs/heads/master
https://gitlab.kitware.com/cmake/cmake/-/blob/v3.31.0/Source/QtDialog/CMakeSetup32.png

0 comments on commit 8fff775

Please sign in to comment.