History

Update Python 2 documentation (2.7.9)

Fixes #203.

Thibaut committed 11 years ago

Commit 480aede1 parent 0a09c893 files · +4 −4Browse files

Unified · Split

3 files
  1. assets/javascripts/templates/pages/about_tmpl.coffee +1 −1
  2. lib/docs/filters/python/clean_html.rb +1 −1
  3. lib/docs/scrapers/python2.rb +2 −2
assets/javascripts/templates/pages/about_tmpl.coffee+1−1
@@ -292,7 +292,7 @@ credits = [ · 291 unmodified lines
292 'http://www.postgresql.org/about/licence/'292 'http://www.postgresql.org/about/licence/'
293 ], [293 ], [
294 'Python',294 'Python',
295 '1990-2014 Python Software Foundation<br>Python is a trademark of the Python Software Foundation.',295 '1990-2015 Python Software Foundation<br>Python is a trademark of the Python Software Foundation.',
296 'PSFL',296 'PSFL',
297 'http://docs.python.org/3/license.html'297 'http://docs.python.org/3/license.html'
298 ], [298 ], [
lib/docs/filters/python/clean_html.rb+1−1
@@ -51,7 +51,7 @@ module Docs · 50 unmodified lines
51 end51 end
52 52
53 # Remove code highlighting53 # Remove code highlighting
54 css('.highlight-python3').each do |node|54 css('[class*="highlight-python"]').each do |node|
55 pre = node.at_css('pre')55 pre = node.at_css('pre')
56 pre.content = pre.content56 pre.content = pre.content
57 pre['class'] = 'python'57 pre['class'] = 'python'
lib/docs/scrapers/python2.rb+2−2
@@ -2,7 +2,7 @@ module Docs · 1 unmodified line
2 class Python2 < FileScraper2 class Python2 < FileScraper
3 self.name = 'Python 2'3 self.name = 'Python 2'
4 self.slug = 'python2'4 self.slug = 'python2'
5 self.version = '2.7.8'5 self.version = '2.7.9'
6 self.type = 'sphinx'6 self.type = 'sphinx'
7 self.dir = '/Users/Thibaut/DevDocs/Docs/Python2' # downloaded from docs.python.org/2.7/download.html7 self.dir = '/Users/Thibaut/DevDocs/Docs/Python2' # downloaded from docs.python.org/2.7/download.html
8 self.base_url = 'http://docs.python.org/2.7/'8 self.base_url = 'http://docs.python.org/2.7/'
@@ -22,7 +22,7 @@ module Docs · 13 unmodified lines
22 library/sunau.html)22 library/sunau.html)
23 23
24 options[:attribution] = <<-HTML24 options[:attribution] = <<-HTML
25 &copy; 1990&ndash;2014 Python Software Foundation<br>25 &copy; 1990&ndash;2015 Python Software Foundation<br>
26 Licensed under the PSF License.26 Licensed under the PSF License.
27 HTML27 HTML
28 end28 end