瀏覽代碼

Merge pull request #1851 from ClasherKasten/update-python-versions

Update versions of currently supported python versions
Simon Legner 3 年之前
父節點
當前提交
5a420f1fc8
共有 2 個文件被更改,包括 7 次插入6 次删除
  1. 2 1
      lib/docs/filters/python/entries_v3.rb
  2. 5 5
      lib/docs/scrapers/python.rb

+ 2 - 1
lib/docs/filters/python/entries_v3.rb

@@ -78,7 +78,8 @@ module Docs
         end
 
         css('.glossary > dt[id]').each do |node|
-          entries << [node.content, node['id']]
+          name = node.content.remove("\u{00b6}")
+          entries << [name, node['id']]
         end
 
         css('.function > dt[id]', '.method > dt[id]', '.staticmethod > dt[id]', '.classmethod > dt[id]').each do |node|

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

@@ -22,35 +22,35 @@ module Docs
     HTML
 
     version '3.11' do
-      self.release = '3.11.0rc2'
+      self.release = '3.11.0'
       self.base_url = "https://docs.python.org/#{self.version}/"
 
       html_filters.push 'python/entries_v3', 'sphinx/clean_html', 'python/clean_html'
     end
 
     version '3.10' do
-      self.release = '3.10.7'
+      self.release = '3.10.8'
       self.base_url = "https://docs.python.org/#{self.version}/"
 
       html_filters.push 'python/entries_v3', 'sphinx/clean_html', 'python/clean_html'
     end
 
     version '3.9' do
-      self.release = '3.9.4'
+      self.release = '3.9.14'
       self.base_url = 'https://docs.python.org/3.9/'
 
       html_filters.push 'python/entries_v3', 'sphinx/clean_html', 'python/clean_html'
     end
 
     version '3.8' do
-      self.release = '3.8.6'
+      self.release = '3.8.14'
       self.base_url = 'https://docs.python.org/3.8/'
 
       html_filters.push 'python/entries_v3', 'sphinx/clean_html', 'python/clean_html'
     end
 
     version '3.7' do
-      self.release = '3.7.9'
+      self.release = '3.7.14'
       self.base_url = 'https://docs.python.org/3.7/'
 
       html_filters.push 'python/entries_v3', 'sphinx/clean_html', 'python/clean_html'