Update CMake documentation (3.24)

pull/1824/head
Simon Legner 2 years ago
parent 26f7c1425b
commit bb64013a05

@ -173,7 +173,7 @@ credits = [
'https://github.com/clojure/clojure/blob/master/epl-v10.html' 'https://github.com/clojure/clojure/blob/master/epl-v10.html'
], [ ], [
'CMake', 'CMake',
'2000-2019 Kitware, Inc. and Contributors', '2000-2022 Kitware, Inc. and Contributors',
'BSD', 'BSD',
'https://cmake.org/licensing/' 'https://cmake.org/licensing/'
], [ ], [

@ -16,10 +16,25 @@ module Docs
options[:skip_patterns] = [/\Agenerator/, /\Acpack_gen/, /\Ainclude/, /\Arelease/, /tutorial\/(\w*%20)+/] options[:skip_patterns] = [/\Agenerator/, /\Acpack_gen/, /\Ainclude/, /\Arelease/, /tutorial\/(\w*%20)+/]
options[:attribution] = <<-HTML options[:attribution] = <<-HTML
&copy; 2000&ndash;2021 Kitware, Inc. and Contributors<br> &copy; 2000&ndash;2022 Kitware, Inc. and Contributors<br>
Licensed under the BSD 3-clause License. Licensed under the BSD 3-clause License.
HTML HTML
version '3.24' do
self.release = '3.24'
self.base_url = "https://cmake.org/cmake/help/v#{self.version}/"
end
version '3.23' do
self.release = '3.23'
self.base_url = "https://cmake.org/cmake/help/v#{self.version}/"
end
version '3.22' do
self.release = '3.22'
self.base_url = "https://cmake.org/cmake/help/v#{self.version}/"
end
version '3.21' do version '3.21' do
self.release = '3.21' self.release = '3.21'
self.base_url = "https://cmake.org/cmake/help/v#{self.version}/" self.base_url = "https://cmake.org/cmake/help/v#{self.version}/"
@ -106,9 +121,8 @@ module Docs
end end
def get_latest_version(opts) def get_latest_version(opts)
doc = fetch_doc('https://cmake.org/documentation/', opts) tags = get_gitlab_tags('gitlab.kitware.com', 'cmake', 'cmake', opts)
link = doc.at_css('.entry-content ul > li > strong > a > big') tags[0]['name'][1..]
link.content.scan(/([0-9.]+)/)[0][0]
end end
end end
end end

Loading…
Cancel
Save