[devdocsgjs/main: 1629/1867] Update Python documentation (3.9.4)




commit 0ca45861233ed700256f9f3bae1397881eba3b71
Author: Simon Legner <Simon Legner gmail com>
Date:   Fri Apr 30 00:02:19 2021 +0200

    Update Python documentation (3.9.4)

 assets/javascripts/templates/pages/about_tmpl.coffee |  2 +-
 docs/file-scrapers.md                                |  6 ++----
 lib/docs/scrapers/python.rb                          | 17 ++++++++---------
 3 files changed, 11 insertions(+), 14 deletions(-)
---
diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee 
b/assets/javascripts/templates/pages/about_tmpl.coffee
index 67eae883..bfc61642 100644
--- a/assets/javascripts/templates/pages/about_tmpl.coffee
+++ b/assets/javascripts/templates/pages/about_tmpl.coffee
@@ -658,7 +658,7 @@ credits = [
     'https://raw.githubusercontent.com/pygame/pygame/master/LICENSE'
   ], [
     'Python',
-    '2001-2020 Python Software Foundation<br>Python is a trademark of the Python Software Foundation.',
+    '2001-2021 Python Software Foundation<br>Python is a trademark of the Python Software Foundation.',
     'PSFL',
     'https://docs.python.org/3/license.html'
   ], [
diff --git a/docs/file-scrapers.md b/docs/file-scrapers.md
index 590faa4d..fc03d906 100644
--- a/docs/file-scrapers.md
+++ b/docs/file-scrapers.md
@@ -163,9 +163,7 @@ Or run the following commands in your terminal:
 curl https://www.php.net/distributions/manual/php_manual_en.tar.gz > php.tar; \
 tar -xf php.tar; mv php-chunked-xhtml/ path/to/devdocs/docs/php/
 ```
-## Python
-
-### Versions 3.6+
+## Python 3.6+
 
 ```sh
 mkdir docs/python~$VERSION
@@ -174,7 +172,7 @@ curl -L https://docs.python.org/$VERSION/archives/python-$RELEASE-docs-html.tar.
 tar xj --strip-components=1
 ```
 
-### < 3.6
+## Python < 3.6
 
 ```sh
 mkdir docs/python~$VERSION
diff --git a/lib/docs/scrapers/python.rb b/lib/docs/scrapers/python.rb
index 2676b5bf..88c076dd 100644
--- a/lib/docs/scrapers/python.rb
+++ b/lib/docs/scrapers/python.rb
@@ -19,47 +19,46 @@ module Docs
       library/sunau.html)
 
     options[:attribution] = <<-HTML
-      &copy; 2001&ndash;2020 Python Software Foundation<br>
+      &copy; 2001&ndash;2021 Python Software Foundation<br>
       Licensed under the PSF License.
     HTML
 
-    # mkdir -p docs/python~3.9 && cd docs/python~3.9 && curl -L 
https://docs.python.org/3.9/archives/python-3.9.0-docs-html.tar.bz2 | tar xj --strip-components=1
-    version '3.9' do # docs.python.org/3.9/download.html
-      self.release = '3.9.0'
+    version '3.9' do
+      self.release = '3.9.4'
       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 # docs.python.org/3.8/download.html
+    version '3.8' do
       self.release = '3.8.6'
       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 # docs.python.org/3.7/download.html
+    version '3.7' do
       self.release = '3.7.9'
       self.base_url = 'https://docs.python.org/3.7/'
 
       html_filters.push 'python/entries_v3', 'sphinx/clean_html', 'python/clean_html'
     end
 
-    version '3.6' do # docs.python.org/3.6/download.html
+    version '3.6' do
       self.release = '3.6.12'
       self.base_url = 'https://docs.python.org/3.6/'
 
       html_filters.push 'python/entries_v3', 'sphinx/clean_html', 'python/clean_html'
     end
 
-    version '3.5' do # docs.python.org/3.5/download.html
+    version '3.5' do
       self.release = '3.5.9'
       self.base_url = 'https://docs.python.org/3.5/'
 
       html_filters.push 'python/entries_v3', 'sphinx/clean_html', 'python/clean_html'
     end
 
-    version '2.7' do # docs.python.org/2.7/download.html
+    version '2.7' do
       self.release = '2.7.17'
       self.base_url = 'https://docs.python.org/2.7/'
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]