Skip to content

Commit

Permalink
Merge pull request freeCodeCamp#1928 from ClasherKasten/minor/cmake
Browse files Browse the repository at this point in the history
Update CMake documentation (3.26)
  • Loading branch information
simon04 authored Feb 21, 2023
2 parents 01ae1e5 + b9ba7d4 commit bfc0e59
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/docs/scrapers/cmake.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Cmake < UrlScraper
self.type = 'sphinx_simple'
self.links = {
home: 'https://cmake.org/',
code: 'https://cmake.org/gitweb?p=cmake.git;a=summary'
code: 'https://gitlab.kitware.com/cmake/cmake/'
}

html_filters.push 'cmake/clean_html', 'sphinx/clean_html', 'cmake/entries', 'title'
Expand All @@ -16,10 +16,15 @@ class Cmake < UrlScraper
options[:skip_patterns] = [/\Agenerator/, /\Acpack_gen/, /\Ainclude/, /\Arelease/, /tutorial\/(\w*%20)+/]

options[:attribution] = <<-HTML
&copy; 2000&ndash;2022 Kitware, Inc. and Contributors<br>
&copy; 2000&ndash;2023 Kitware, Inc. and Contributors<br>
Licensed under the BSD 3-clause License.
HTML

version '3.26' do
self.release = '3.26'
self.base_url = "https://cmake.org/cmake/help/v#{self.version}/"
end

version '3.25' do
self.release = '3.25'
self.base_url = "https://cmake.org/cmake/help/v#{self.version}/"
Expand Down

0 comments on commit bfc0e59

Please sign in to comment.