diff --git a/assets/stylesheets/pages/_pygame.scss b/assets/stylesheets/pages/_pygame.scss index 10add41b..380af31f 100644 --- a/assets/stylesheets/pages/_pygame.scss +++ b/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 } } diff --git a/lib/docs/filters/pygame/clean_html.rb b/lib/docs/filters/pygame/clean_html.rb index af01f2d0..d077655e 100644 --- a/lib/docs/filters/pygame/clean_html.rb +++ b/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| diff --git a/lib/docs/scrapers/pygame.rb b/lib/docs/scrapers/pygame.rb index 75bcb198..7de757c4 100644 --- a/lib/docs/scrapers/pygame.rb +++ b/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 = {