| @@ -2,6 +2,10 @@ module Docs · 1 unmodified line |
| 2 | class Python < FileScraper | 2 | class Python < FileScraper |
| 3 | self.type = 'sphinx' | 3 | self.type = 'sphinx' |
| 4 | self.root_path = 'library/index.html' | 4 | self.root_path = 'library/index.html' |
| | 5 | self.links = { |
| | 6 | home: 'https://www.python.org/', |
| | 7 | code: 'https://github.com/python/cpython' |
| | 8 | } |
| 5 | | 9 | |
| 6 | options[:only_patterns] = [/\Alibrary\//] | 10 | options[:only_patterns] = [/\Alibrary\//] |
| 7 | | 11 | |
| @@ -15,12 +19,12 @@ module Docs · 7 unmodified lines |
| 15 | library/sunau.html) | 19 | library/sunau.html) |
| 16 | | 20 | |
| 17 | options[:attribution] = <<-HTML | 21 | options[:attribution] = <<-HTML |
| 18 | © 1990–2015 Python Software Foundation<br> | 22 | © 2001–2017 Python Software Foundation<br> |
| 19 | Licensed under the PSF License. | 23 | Licensed under the PSF License. |
| 20 | HTML | 24 | HTML |
| 21 | | 25 | |
| 22 | version '3.6' do | 26 | version '3.6' do |
| 23 | self.release = '3.6.0' | 27 | self.release = '3.6.1' |
| 24 | self.dir = '/Users/Thibaut/DevDocs/Docs/Python36' # docs.python.org/3.6/download.html | 28 | self.dir = '/Users/Thibaut/DevDocs/Docs/Python36' # docs.python.org/3.6/download.html |
| 25 | self.base_url = 'https://docs.python.org/3.6/' | 29 | self.base_url = 'https://docs.python.org/3.6/' |
| 26 | | 30 | |
| @@ -28,7 +32,7 @@ module Docs · 1 unmodified line |
| 28 | end | 32 | end |
| 29 | | 33 | |
| 30 | version '3.5' do | 34 | version '3.5' do |
| 31 | self.release = '3.5.2' | 35 | self.release = '3.5.3' |
| 32 | self.dir = '/Users/Thibaut/DevDocs/Docs/Python35' # docs.python.org/3.5/download.html | 36 | self.dir = '/Users/Thibaut/DevDocs/Docs/Python35' # docs.python.org/3.5/download.html |
| 33 | self.base_url = 'https://docs.python.org/3.5/' | 37 | self.base_url = 'https://docs.python.org/3.5/' |
| 34 | | 38 | |
| @@ -36,7 +40,7 @@ module Docs · 1 unmodified line |
| 36 | end | 40 | end |
| 37 | | 41 | |
| 38 | version '2.7' do | 42 | version '2.7' do |
| 39 | self.release = '2.7.12' | 43 | self.release = '2.7.13' |
| 40 | self.dir = '/Users/Thibaut/DevDocs/Docs/Python27' # docs.python.org/2.7/download.html | 44 | self.dir = '/Users/Thibaut/DevDocs/Docs/Python27' # docs.python.org/2.7/download.html |
| 41 | self.base_url = 'https://docs.python.org/2.7/' | 45 | self.base_url = 'https://docs.python.org/2.7/' |
| 42 | | 46 | |