Showing the changes to lib/docs/scrapers/python.rb (1 of 15 files). Show all
Unified · Split
| @@ -0,0 +1,27 @@ | |||
| 1 | module Docs | ||
| 2 | class Python < FileScraper | ||
| 3 | self.version = '3.3.3' | ||
| 4 | self.type = 'sphinx' | ||
| 5 | self.dir = '/Users/Thibaut/DevDocs/Docs/Python' # downloaded from docs.python.org/3/download.html | ||
| 6 | self.base_url = 'http://docs.python.org/3/' | ||
| 7 | self.root_path = 'library/index.html' | ||
| 8 | |||
| 9 | html_filters.push 'python/entries', 'python/clean_html' | ||
| 10 | |||
| 11 | options[:only_patterns] = [/\Alibrary\//] | ||
| 12 | |||
| 13 | options[:skip] = %w( | ||
| 14 | library/2to3.html | ||
| 15 | library/formatter.html | ||
| 16 | library/index.html | ||
| 17 | library/intro.html | ||
| 18 | library/undoc.html | ||
| 19 | library/unittest.mock-examples.html | ||
| 20 | library/sunau.html) | ||
| 21 | |||
| 22 | options[:attribution] = <<-HTML | ||
| 23 | © 1990–2013 Python Software Foundation<br> | ||
| 24 | Licensed under the PSF License. | ||
| 25 | HTML | ||
| 26 | end | ||
| 27 | end | ||