From e5c08cdf5208f537ae58e5c3751dd053304179b5 Mon Sep 17 00:00:00 2001 From: ClasherKasten Date: Wed, 24 May 2023 16:59:38 +0200 Subject: [PATCH] Updated PyGame (2.4) --- assets/stylesheets/pages/_pygame.scss | 2 ++ lib/docs/filters/pygame/clean_html.rb | 2 +- lib/docs/scrapers/pygame.rb | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) 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 = {