소스 검색

Update CMake documentation (3.21)

Enoc 4 년 전
부모
커밋
ff450559f1
3개의 변경된 파일28개의 추가작업 그리고 1개의 파일을 삭제
  1. 16 0
      assets/javascripts/vendor/prism.js
  2. 6 0
      lib/docs/filters/cmake/clean_html.rb
  3. 6 1
      lib/docs/scrapers/cmake.rb

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 16 - 0
assets/javascripts/vendor/prism.js


+ 6 - 0
lib/docs/filters/cmake/clean_html.rb

@@ -10,6 +10,12 @@ module Docs
           end
         end
 
+        css('section').each do |node|
+          node.children.each do |subnode|
+            node.previous = subnode
+          end
+        end
+
         doc
       end
     end

+ 6 - 1
lib/docs/scrapers/cmake.rb

@@ -13,13 +13,18 @@ module Docs
     options[:title] = false
     options[:root_title] = 'CMake Reference Documentation'
     options[:skip] = %w(release/index.html genindex.html search.html)
-    options[:skip_patterns] = [/\Agenerator/, /\Acpack_gen/, /\Ainclude/, /\Arelease/]
+    options[:skip_patterns] = [/\Agenerator/, /\Acpack_gen/, /\Ainclude/, /\Arelease/, /tutorial\/(\w*%20)+/]
 
     options[:attribution] = <<-HTML
       &copy; 2000&ndash;2021 Kitware, Inc. and Contributors<br>
       Licensed under the BSD 3-clause License.
     HTML
 
+    version '3.21' do
+      self.release = '3.21'
+      self.base_url = "https://cmake.org/cmake/help/v#{self.version}/"
+    end
+
     version '3.20' do
       self.release = '3.20'
       self.base_url = "https://cmake.org/cmake/help/v#{self.version}/"

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.