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
461461 'http://www.postgresql.org/about/licence/'
462462 ], [
463463 '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.',
465465 'PSFL',
466466 'https://docs.python.org/3/license.html'
467467 ], [
lib/docs/filters/sphinx/clean_html.rb+1−1
@@ -60,7 +60,7 @@ module Docs · 59 unmodified lines
6060 next unless node['id'] || node.at_css('code, .classifier')
6161 links = []
6262 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> "
6464 links.reverse_each { |link| node << link }
6565 end
6666
lib/docs/scrapers/python.rb+8−4
@@ -2,6 +2,10 @@ module Docs · 1 unmodified line
22 class Python < FileScraper
33 self.type = 'sphinx'
44 self.root_path = 'library/index.html'
5+ self.links = {
6+ home: 'https://www.python.org/',
7+ code: 'https://github.com/python/cpython'
8+ }
59
610 options[:only_patterns] = [/\Alibrary\//]
711
@@ -15,12 +19,12 @@ module Docs · 7 unmodified lines
1519 library/sunau.html)
1620
1721 options[:attribution] = <<-HTML
18− &copy; 1990&ndash;2015 Python Software Foundation<br>
22+ &copy; 2001&ndash;2017 Python Software Foundation<br>
1923 Licensed under the PSF License.
2024 HTML
2125
2226 version '3.6' do
23− self.release = '3.6.0'
27+ self.release = '3.6.1'
2428 self.dir = '/Users/Thibaut/DevDocs/Docs/Python36' # docs.python.org/3.6/download.html
2529 self.base_url = 'https://docs.python.org/3.6/'
2630
@@ -28,7 +32,7 @@ module Docs · 1 unmodified line
2832 end
2933
3034 version '3.5' do
31− self.release = '3.5.2'
35+ self.release = '3.5.3'
3236 self.dir = '/Users/Thibaut/DevDocs/Docs/Python35' # docs.python.org/3.5/download.html
3337 self.base_url = 'https://docs.python.org/3.5/'
3438
@@ -36,7 +40,7 @@ module Docs · 1 unmodified line
3640 end
3741
3842 version '2.7' do
39− self.release = '2.7.12'
43+ self.release = '2.7.13'
4044 self.dir = '/Users/Thibaut/DevDocs/Docs/Python27' # docs.python.org/2.7/download.html
4145 self.base_url = 'https://docs.python.org/2.7/'
4246