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
613 'https://raw.githubusercontent.com/pygame/pygame/master/LICENSE'613 'https://raw.githubusercontent.com/pygame/pygame/master/LICENSE'
614 ], [614 ], [
615 'Python',615 '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.',
617 'PSFL',617 'PSFL',
618 'https://docs.python.org/3/license.html'618 'https://docs.python.org/3/license.html'
619 ], [619 ], [
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
44 44
45## Python45## Python
46 46
47### Versions 3.6+
48
49```sh
50mkdir docs/python~$VERSION
51cd docs/python~$VERSION
52curl -L https://docs.python.org/$VERSION/archives/python-$RELEASE-docs-html.tar.bz2 | \
53tar xj --strip-components=1
54```
55
56### < 3.6
57
58```sh
59mkdir docs/python~$VERSION
60cd docs/python~$VERSION
61curl -L https://docs.python.org/ftp/python/doc/$RELEASE/python-$RELEASE-docs-html.tar.bz2 | \
62tar xj --strip-components=1
63```
64
47## RDoc65## RDoc
48 66
49### Nokogiri67### Nokogiri
lib/docs/scrapers/python.rb+5−11
@@ -19,32 +19,26 @@ module Docs · 18 unmodified lines
19 library/sunau.html)19 library/sunau.html)
20 20
21 options[:attribution] = <<-HTML21 options[:attribution] = <<-HTML
22 &copy; 2001&ndash;2019 Python Software Foundation<br>22 &copy; 2001&ndash;2020 Python Software Foundation<br>
23 Licensed under the PSF License.23 Licensed under the PSF License.
24 HTML24 HTML
25 25
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
32 version '3.8' do # docs.python.org/3.8/download.html26 version '3.8' do # docs.python.org/3.8/download.html
33 self.release = '3.8.0'27 self.release = '3.8.1'
34 self.base_url = 'https://docs.python.org/3.8/'28 self.base_url = 'https://docs.python.org/3.8/'
35 29
36 html_filters.push 'python/entries_v3', 'sphinx/clean_html', 'python/clean_html'30 html_filters.push 'python/entries_v3', 'sphinx/clean_html', 'python/clean_html'
37 end31 end
38 32
39 version '3.7' do # docs.python.org/3.7/download.html33 version '3.7' do # docs.python.org/3.7/download.html
40 self.release = '3.7.5'34 self.release = '3.7.6'
41 self.base_url = 'https://docs.python.org/3.7/'35 self.base_url = 'https://docs.python.org/3.7/'
42 36
43 html_filters.push 'python/entries_v3', 'sphinx/clean_html', 'python/clean_html'37 html_filters.push 'python/entries_v3', 'sphinx/clean_html', 'python/clean_html'
44 end38 end
45 39
46 version '3.6' do # docs.python.org/3.6/download.html40 version '3.6' do # docs.python.org/3.6/download.html
47 self.release = '3.6.9'41 self.release = '3.6.10'
48 self.base_url = 'https://docs.python.org/3.6/'42 self.base_url = 'https://docs.python.org/3.6/'
49 43
50 html_filters.push 'python/entries_v3', 'sphinx/clean_html', 'python/clean_html'44 html_filters.push 'python/entries_v3', 'sphinx/clean_html', 'python/clean_html'
@@ -58,7 +52,7 @@ module Docs · 7 unmodified lines
58 end52 end
59 53
60 version '2.7' do # docs.python.org/2.7/download.html54 version '2.7' do # docs.python.org/2.7/download.html
61 self.release = '2.7.16'55 self.release = '2.7.17'
62 self.base_url = 'https://docs.python.org/2.7/'56 self.base_url = 'https://docs.python.org/2.7/'
63 57
64 html_filters.push 'python/entries_v2', 'sphinx/clean_html', 'python/clean_html'58 html_filters.push 'python/entries_v2', 'sphinx/clean_html', 'python/clean_html'