1
0

python.rb 769 B

123456789101112131415161718192021222324252627
  1. module Docs
  2. class Python < FileScraper
  3. self.release = '3.5.1'
  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. html_filters.push 'python/entries', 'python/clean_html'
  9. options[:only_patterns] = [/\Alibrary\//]
  10. options[:skip] = %w(
  11. library/2to3.html
  12. library/formatter.html
  13. library/index.html
  14. library/intro.html
  15. library/undoc.html
  16. library/unittest.mock-examples.html
  17. library/sunau.html)
  18. options[:attribution] = <<-HTML
  19. &copy; 1990&ndash;2015 Python Software Foundation<br>
  20. Licensed under the PSF License.
  21. HTML
  22. end
  23. end