haskell.rb 748 B

123456789101112131415161718192021222324
  1. module Docs
  2. class Haskell < UrlScraper
  3. self.name = 'Haskell'
  4. self.slug = 'haskell'
  5. self.type = 'haskell'
  6. self.version = '7.8.2'
  7. self.base_url = 'http://www.haskell.org/ghc/docs/7.8.2/html/libraries'
  8. self.initial_paths = ['/index.html']
  9. html_filters.push 'haskell/entries'
  10. html_filters.push 'haskell/clean_html'
  11. html_filters.push 'title'
  12. options[:container] = '#content'
  13. options[:skip_patterns] = [/src/, /index/, /haskell2010/] # skip source listings and index files
  14. options[:attribution] = <<-HTML
  15. &copy; The University Court of the University of Glasgow.<br>
  16. All rights reserved. <a href="http://www.haskell.org/ghc/license">See here for more info</a>
  17. HTML
  18. end
  19. end