Skip to content

Commit 8fff775

Browse files
authored
Merge pull request #2369 from evakili/evakili/update-cmake-to-v3.31
Update cmake up to v3.31 and add latest version
2 parents 13e629e + 3caa196 commit 8fff775

File tree

4 files changed

+31
-2
lines changed

4 files changed

+31
-2
lines changed

lib/docs/scrapers/cmake.rb

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,39 @@ class Cmake < UrlScraper
1616
options[:skip_patterns] = [/\Agenerator/, /\Acpack_gen/, /\Ainclude/, /\Arelease/, /tutorial\/(\w*%20)+/]
1717

1818
options[:attribution] = <<-HTML
19-
&copy; 2000&ndash;2023 Kitware, Inc. and Contributors<br>
19+
&copy; 2000&ndash;2024 Kitware, Inc. and Contributors<br>
2020
Licensed under the BSD 3-clause License.
2121
HTML
2222

23+
version do
24+
self.base_url = "https://cmake.org/cmake/help/latest/"
25+
end
26+
27+
version '3.31' do
28+
self.release = '3.31'
29+
self.base_url = "https://cmake.org/cmake/help/v#{self.version}/"
30+
end
31+
32+
version '3.30' do
33+
self.release = '3.30'
34+
self.base_url = "https://cmake.org/cmake/help/v#{self.version}/"
35+
end
36+
37+
version '3.29' do
38+
self.release = '3.29'
39+
self.base_url = "https://cmake.org/cmake/help/v#{self.version}/"
40+
end
41+
42+
version '3.28' do
43+
self.release = '3.28'
44+
self.base_url = "https://cmake.org/cmake/help/v#{self.version}/"
45+
end
46+
47+
version '3.27' do
48+
self.release = '3.27'
49+
self.base_url = "https://cmake.org/cmake/help/v#{self.version}/"
50+
end
51+
2352
version '3.26' do
2453
self.release = '3.26'
2554
self.base_url = "https://cmake.org/cmake/help/v#{self.version}/"

public/icons/docs/cmake/16.png

487 Bytes
Loading
1.21 KB
Loading

public/icons/docs/cmake/SOURCE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
https://cmake.org/gitweb?p=cmake.git;a=blob_plain;f=Source/QtDialog/CMakeSetup.ico;hb=refs/heads/master
1+
https://gitlab.kitware.com/cmake/cmake/-/blob/v3.31.0/Source/QtDialog/CMakeSetup32.png

0 commit comments

Comments
 (0)