History

Update CMake documentation (3.24)

Simon Legner committed 4 years ago

Commit bb640131 parent 26f7c142 files · +19 −5Browse files

Unified · Split

2 files
  1. assets/javascripts/templates/pages/about_tmpl.coffee +1 −1
  2. lib/docs/scrapers/cmake.rb +18 −4
assets/javascripts/templates/pages/about_tmpl.coffee+1−1
@@ -173,7 +173,7 @@ credits = [ · 172 unmodified lines
173173 'https://github.com/clojure/clojure/blob/master/epl-v10.html'
174174 ], [
175175 'CMake',
176− '2000-2019 Kitware, Inc. and Contributors',
176+ '2000-2022 Kitware, Inc. and Contributors',
177177 'BSD',
178178 'https://cmake.org/licensing/'
179179 ], [
lib/docs/scrapers/cmake.rb+18−4
@@ -16,10 +16,25 @@ module Docs · 15 unmodified lines
1616 options[:skip_patterns] = [/\Agenerator/, /\Acpack_gen/, /\Ainclude/, /\Arelease/, /tutorial\/(\w*%20)+/]
1717
1818 options[:attribution] = <<-HTML
19− &copy; 2000&ndash;2021 Kitware, Inc. and Contributors<br>
19+ &copy; 2000&ndash;2022 Kitware, Inc. and Contributors<br>
2020 Licensed under the BSD 3-clause License.
2121 HTML
2222
23+ version '3.24' do
24+ self.release = '3.24'
25+ self.base_url = "https://cmake.org/cmake/help/v#{self.version}/"
26+ end
27+
28+ version '3.23' do
29+ self.release = '3.23'
30+ self.base_url = "https://cmake.org/cmake/help/v#{self.version}/"
31+ end
32+
33+ version '3.22' do
34+ self.release = '3.22'
35+ self.base_url = "https://cmake.org/cmake/help/v#{self.version}/"
36+ end
37+
2338 version '3.21' do
2439 self.release = '3.21'
2540 self.base_url = "https://cmake.org/cmake/help/v#{self.version}/"
@@ -106,9 +121,8 @@ module Docs · 80 unmodified lines
106121 end
107122
108123 def get_latest_version(opts)
109− doc = fetch_doc('https://cmake.org/documentation/', opts)
110− link = doc.at_css('.entry-content ul > li > strong > a > big')
111− link.content.scan(/([0-9.]+)/)[0][0]
124+ tags = get_gitlab_tags('gitlab.kitware.com', 'cmake', 'cmake', opts)
125+ tags[0]['name'][1..]
112126 end
113127 end
114128 end