ソースを参照

Updated PyGame (2.4)

ClasherKasten 2 年 前
コミット
e5c08cdf52

+ 2 - 0
assets/stylesheets/pages/_pygame.scss

@@ -9,4 +9,6 @@
   .line-block > .line:first-child { margin-bottom: 1em; }
   .line-block > .line:only-child { margin-bottom: 0em; }
   span.signature { font-family: monospace; }
+
+  .warning { @extend %note, %note-red }
 }

+ 1 - 1
lib/docs/filters/pygame/clean_html.rb

@@ -22,7 +22,7 @@ module Docs
       end
 
       def other
-        css('> :not(.section), table.toc.docutils, .tooltip-content').remove
+        css('table.toc.docutils, .tooltip-content').remove
 
         # Remove code tag from function, class, method, module, etc.
         css('dl > dt').each do |node|

+ 1 - 1
lib/docs/scrapers/pygame.rb

@@ -1,7 +1,7 @@
 module Docs
   class Pygame < UrlScraper
     self.type = 'pygame'
-    self.release = '2.0.0'
+    self.release = '2.4.0'
     self.base_url = 'https://www.pygame.org/docs/'
     self.root_path = 'py-modindex.html'
     self.links = {