History

Update versions & dates for Python, extract info for downloading

Jed Fox committed 6 years ago

Commit dca7ffd1 parent 428afb13 files · +24 −12Browse files

Unified · Split

3 files
  1. assets/javascripts/templates/pages/about_tmpl.coffee +1 −1
  2. docs/file-scrapers.md +18 −0
  3. lib/docs/scrapers/python.rb +5 −11
assets/javascripts/templates/pages/about_tmpl.coffee+1−1
@@ -613,7 +613,7 @@ credits = [ · 612 unmodified lines
613613 'https://raw.githubusercontent.com/pygame/pygame/master/LICENSE'
614614 ], [
615615 'Python',
616− '2001-2019 Python Software Foundation<br>Python is a trademark of the Python Software Foundation.',
616+ '2001-2020 Python Software Foundation<br>Python is a trademark of the Python Software Foundation.',
617617 'PSFL',
618618 'https://docs.python.org/3/license.html'
619619 ], [
docs/file-scrapers.md+18−0
@@ -44,6 +44,24 @@ Go to https://www.erlang.org/downloads and download the HTML documentation file. · 43 unmodified lines
4444
4545 ## Python
4646
47+### Versions 3.6+
48+
49+```sh
50+mkdir docs/python~$VERSION
51+cd docs/python~$VERSION
52+curl -L https://docs.python.org/$VERSION/archives/python-$RELEASE-docs-html.tar.bz2 | \
53+tar xj --strip-components=1
54+```
55+
56+### < 3.6
57+
58+```sh
59+mkdir docs/python~$VERSION
60+cd docs/python~$VERSION
61+curl -L https://docs.python.org/ftp/python/doc/$RELEASE/python-$RELEASE-docs-html.tar.bz2 | \
62+tar xj --strip-components=1
63+```
64+
4765 ## RDoc
4866
4967 ### Nokogiri
lib/docs/scrapers/python.rb+5−11
@@ -19,32 +19,26 @@ module Docs · 18 unmodified lines
1919 library/sunau.html)
2020
2121 options[:attribution] = <<-HTML
22− &copy; 2001&ndash;2019 Python Software Foundation<br>
22+ &copy; 2001&ndash;2020 Python Software Foundation<br>
2323 Licensed under the PSF License.
2424 HTML
2525
26− # In order to download the documentation, run:
27− # $ mkdir -p docs/python~3.8 && \
28− # cd docs/python~3.8 && \
29− # curl -L https://docs.python.org/3.8/archives/python-3.8.0-docs-html.tar.bz2 | \
30− # tar xj --strip-components=1
31−
3226 version '3.8' do # docs.python.org/3.8/download.html
33− self.release = '3.8.0'
27+ self.release = '3.8.1'
3428 self.base_url = 'https://docs.python.org/3.8/'
3529
3630 html_filters.push 'python/entries_v3', 'sphinx/clean_html', 'python/clean_html'
3731 end
3832
3933 version '3.7' do # docs.python.org/3.7/download.html
40− self.release = '3.7.5'
34+ self.release = '3.7.6'
4135 self.base_url = 'https://docs.python.org/3.7/'
4236
4337 html_filters.push 'python/entries_v3', 'sphinx/clean_html', 'python/clean_html'
4438 end
4539
4640 version '3.6' do # docs.python.org/3.6/download.html
47− self.release = '3.6.9'
41+ self.release = '3.6.10'
4842 self.base_url = 'https://docs.python.org/3.6/'
4943
5044 html_filters.push 'python/entries_v3', 'sphinx/clean_html', 'python/clean_html'
@@ -58,7 +52,7 @@ module Docs · 7 unmodified lines
5852 end
5953
6054 version '2.7' do # docs.python.org/2.7/download.html
61− self.release = '2.7.16'
55+ self.release = '2.7.17'
6256 self.base_url = 'https://docs.python.org/2.7/'
6357
6458 html_filters.push 'python/entries_v2', 'sphinx/clean_html', 'python/clean_html'