1
0

haskell.rb 1020 B

1234567891011121314151617181920212223242526272829303132333435
  1. module Docs
  2. class Haskell < UrlScraper
  3. self.name = 'Haskell'
  4. self.type = 'haskell'
  5. self.release = '7.10.3'
  6. self.base_url = "https://downloads.haskell.org/~ghc/#{release}/docs/html/libraries/"
  7. self.root_path = 'index.html'
  8. html_filters.push 'haskell/entries', 'haskell/clean_html'
  9. options[:container] = '#content'
  10. options[:skip_patterns] = [
  11. /src\//,
  12. /doc-index/,
  13. /haskell2010/,
  14. /ghc-/,
  15. /Cabal-/,
  16. /Compiler-Hoopl-Internals\.html\z/i,
  17. /Control-Exception-Base\.html\z/i,
  18. /Data-Binary-Get-Internal\.html\z/i,
  19. /Language-Haskell-TH-Lib\.html\z/i,
  20. /Text-PrettyPrint\.html\z/i,
  21. /Data-OldTypeable-Internal\.html\z/i,
  22. /Data-Typeable-Internal\.html\z/i,
  23. /GHC-IO-Encoding-Types\.html\z/i,
  24. /System-Posix-Process-Internals\.html\z/i
  25. ]
  26. options[:attribution] = <<-HTML
  27. &copy; The University of Glasgow and others<br>
  28. Licensed under a BSD-style license (see top of the page).
  29. HTML
  30. end
  31. end