History

Update Python documentation (3.6.1, 3.5.3, 2.7.13)

Fixes #563.

Thibaut Courouble committed 9 years ago

Commit ff359bd1 parent 30f38993 files · +10 −6Browse files

Unified · Split

3 files
  1. assets/javascripts/templates/pages/about_tmpl.coffee +1 −1
  2. lib/docs/filters/sphinx/clean_html.rb +1 −1
  3. lib/docs/scrapers/python.rb +8 −4
assets/javascripts/templates/pages/about_tmpl.coffee+1−1
@@ -461,7 +461,7 @@ credits = [ · 460 unmodified lines
461 'http://www.postgresql.org/about/licence/'461 'http://www.postgresql.org/about/licence/'
462 ], [462 ], [
463 'Python',463 'Python',
464 '1990-2015 Python Software Foundation<br>Python is a trademark of the Python Software Foundation.',464 '2001-2017 Python Software Foundation<br>Python is a trademark of the Python Software Foundation.',
465 'PSFL',465 'PSFL',
466 'https://docs.python.org/3/license.html'466 'https://docs.python.org/3/license.html'
467 ], [467 ], [
lib/docs/filters/sphinx/clean_html.rb+1−1
@@ -60,7 +60,7 @@ module Docs · 59 unmodified lines
60 next unless node['id'] || node.at_css('code, .classifier')60 next unless node['id'] || node.at_css('code, .classifier')
61 links = []61 links = []
62 links << node.children.last.remove while node.children.last.try(:name) == 'a'62 links << node.children.last.remove while node.children.last.try(:name) == 'a'
63 node.inner_html = "<code>#{node.content.strip}</code> "63 node.inner_html = "<code>#{CGI::escapeHTML(node.content.strip)}</code> "
64 links.reverse_each { |link| node << link }64 links.reverse_each { |link| node << link }
65 end65 end
66 66
lib/docs/scrapers/python.rb+8−4
@@ -2,6 +2,10 @@ module Docs · 1 unmodified line
2 class Python < FileScraper2 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] = <<-HTML21 options[:attribution] = <<-HTML
18 &copy; 1990&ndash;2015 Python Software Foundation<br>22 &copy; 2001&ndash;2017 Python Software Foundation<br>
19 Licensed under the PSF License.23 Licensed under the PSF License.
20 HTML24 HTML
21 25
22 version '3.6' do26 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.html28 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 end32 end
29 33
30 version '3.5' do34 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.html36 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 end40 end
37 41
38 version '2.7' do42 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.html44 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