python2.rb 830 B

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