[devdocsgjs/main: 972/1867] python: add version 3.8




commit 362d1532a17ec92f2ae9bfd47bf4f75791abef03
Author: Simon Legner <Simon Legner gmail com>
Date:   Sun Nov 24 17:23:50 2019 +0100

    python: add version 3.8

 assets/javascripts/templates/pages/about_tmpl.coffee |  2 +-
 lib/docs/scrapers/python.rb                          | 19 ++++++++++++++++---
 2 files changed, 17 insertions(+), 4 deletions(-)
---
diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee 
b/assets/javascripts/templates/pages/about_tmpl.coffee
index 0165ade2..574f33ca 100644
--- a/assets/javascripts/templates/pages/about_tmpl.coffee
+++ b/assets/javascripts/templates/pages/about_tmpl.coffee
@@ -613,7 +613,7 @@ credits = [
     'https://raw.githubusercontent.com/pygame/pygame/master/LICENSE'
   ], [
     'Python',
-    '2001-2018 Python Software Foundation<br>Python is a trademark of the Python Software Foundation.',
+    '2001-2019 Python Software Foundation<br>Python is a trademark of the Python Software Foundation.',
     'PSFL',
     'https://docs.python.org/3/license.html'
   ], [
diff --git a/lib/docs/scrapers/python.rb b/lib/docs/scrapers/python.rb
index e22665cb..a9c99cd7 100644
--- a/lib/docs/scrapers/python.rb
+++ b/lib/docs/scrapers/python.rb
@@ -19,12 +19,25 @@ module Docs
       library/sunau.html)
 
     options[:attribution] = <<-HTML
-      &copy; 2001&ndash;2018 Python Software Foundation<br>
+      &copy; 2001&ndash;2019 Python Software Foundation<br>
       Licensed under the PSF License.
     HTML
 
+    # In order to download the documentation, run:
+    # $ mkdir -p docs/python~3.8 && \
+    #   cd docs/python~3.8 && \
+    #   curl -L https://docs.python.org/3.8/archives/python-3.8.0-docs-html.tar.bz2 | \
+    #   tar xj --strip-components=1
+
+    version '3.8' do # docs.python.org/3.8/download.html
+      self.release = '3.8.0'
+      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
-      self.release = '3.7.4'
+      self.release = '3.7.5'
       self.base_url = 'https://docs.python.org/3.7/'
 
       html_filters.push 'python/entries_v3', 'sphinx/clean_html', 'python/clean_html'
@@ -38,7 +51,7 @@ module Docs
     end
 
     version '3.5' do # docs.python.org/3.5/download.html
-      self.release = '3.5.7'
+      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'


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