Browse Source

Update Python documentation (3.13.2)

Simon Legner 9 months ago
parent
commit
fd4682c7b6
2 changed files with 5 additions and 5 deletions
  1. 1 1
      lib/docs/filters/sphinx/clean_html.rb
  2. 4 4
      lib/docs/scrapers/python.rb

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

@@ -24,7 +24,7 @@ module Docs
           lang = 'php' if lang == 'ci'|| lang == 'html+php'
           lang = 'markup' if lang == 'html+django'
           lang = 'bash' if lang == 'bash'
-          lang = 'python' if lang == 'default' || lang.start_with?('python') || lang.start_with?('ipython')
+          lang = 'python' if lang == 'default' || lang == 'pycon' || lang.start_with?('python') || lang.start_with?('ipython')
           pre['data-language'] = lang
           node.replace(pre)
         end

+ 4 - 4
lib/docs/scrapers/python.rb

@@ -23,26 +23,26 @@ module Docs
       library/sunau.html)
 
     options[:attribution] = <<-HTML
-      &copy; 2001&ndash;2024 Python Software Foundation<br>
+      &copy; 2001&ndash;2025 Python Software Foundation<br>
       Licensed under the PSF License.
     HTML
 
     version '3.13' do
-      self.release = '3.13.1'
+      self.release = '3.13.2'
       self.base_url = "https://docs.python.org/#{self.version}/"
 
       html_filters.push 'python/entries_v3', 'sphinx/clean_html', 'python/clean_html'
     end
 
     version '3.12' do
-      self.release = '3.12.5'
+      self.release = '3.12.9'
       self.base_url = "https://docs.python.org/#{self.version}/"
 
       html_filters.push 'python/entries_v3', 'sphinx/clean_html', 'python/clean_html'
     end
 
     version '3.11' do
-      self.release = '3.11.7'
+      self.release = '3.11.11'
       self.base_url = "https://docs.python.org/#{self.version}/"
 
       html_filters.push 'python/entries_v3', 'sphinx/clean_html', 'python/clean_html'