diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee b/assets/javascripts/templates/pages/about_tmpl.coffee
index bb520f87..39d2365e 100644
--- a/assets/javascripts/templates/pages/about_tmpl.coffee
+++ b/assets/javascripts/templates/pages/about_tmpl.coffee
@@ -461,7 +461,7 @@ credits = [
'http://www.postgresql.org/about/licence/'
], [
'Python',
- '1990-2015 Python Software Foundation
Python is a trademark of the Python Software Foundation.',
+ '2001-2017 Python Software Foundation
Python is a trademark of the Python Software Foundation.',
'PSFL',
'https://docs.python.org/3/license.html'
], [
diff --git a/lib/docs/filters/sphinx/clean_html.rb b/lib/docs/filters/sphinx/clean_html.rb
index 23ff3f1c..bbb064ea 100644
--- a/lib/docs/filters/sphinx/clean_html.rb
+++ b/lib/docs/filters/sphinx/clean_html.rb
@@ -60,7 +60,7 @@ module Docs
next unless node['id'] || node.at_css('code, .classifier')
links = []
links << node.children.last.remove while node.children.last.try(:name) == 'a'
- node.inner_html = "#{node.content.strip}
"
+ node.inner_html = "#{CGI::escapeHTML(node.content.strip)}
"
links.reverse_each { |link| node << link }
end
diff --git a/lib/docs/scrapers/python.rb b/lib/docs/scrapers/python.rb
index 91750683..baad2ddb 100644
--- a/lib/docs/scrapers/python.rb
+++ b/lib/docs/scrapers/python.rb
@@ -2,6 +2,10 @@ module Docs
class Python < FileScraper
self.type = 'sphinx'
self.root_path = 'library/index.html'
+ self.links = {
+ home: 'https://www.python.org/',
+ code: 'https://github.com/python/cpython'
+ }
options[:only_patterns] = [/\Alibrary\//]
@@ -15,12 +19,12 @@ module Docs
library/sunau.html)
options[:attribution] = <<-HTML
- © 1990–2015 Python Software Foundation
+ © 2001–2017 Python Software Foundation
Licensed under the PSF License.
HTML
version '3.6' do
- self.release = '3.6.0'
+ self.release = '3.6.1'
self.dir = '/Users/Thibaut/DevDocs/Docs/Python36' # docs.python.org/3.6/download.html
self.base_url = 'https://docs.python.org/3.6/'
@@ -28,7 +32,7 @@ module Docs
end
version '3.5' do
- self.release = '3.5.2'
+ self.release = '3.5.3'
self.dir = '/Users/Thibaut/DevDocs/Docs/Python35' # docs.python.org/3.5/download.html
self.base_url = 'https://docs.python.org/3.5/'
@@ -36,7 +40,7 @@ module Docs
end
version '2.7' do
- self.release = '2.7.12'
+ self.release = '2.7.13'
self.dir = '/Users/Thibaut/DevDocs/Docs/Python27' # docs.python.org/2.7/download.html
self.base_url = 'https://docs.python.org/2.7/'