mirror of https://github.com/freeCodeCamp/devdocs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1020 B
36 lines
1020 B
module Docs
|
|
class Haskell < UrlScraper
|
|
self.name = 'Haskell'
|
|
self.type = 'haskell'
|
|
self.version = '7.10.3'
|
|
self.base_url = "https://downloads.haskell.org/~ghc/#{version}/docs/html/libraries/"
|
|
self.root_path = 'index.html'
|
|
|
|
html_filters.push 'haskell/entries', 'haskell/clean_html'
|
|
|
|
options[:container] = '#content'
|
|
|
|
options[:skip_patterns] = [
|
|
/src\//,
|
|
/doc-index/,
|
|
/haskell2010/,
|
|
/ghc-/,
|
|
/Cabal-/,
|
|
/Compiler-Hoopl-Internals\.html\z/i,
|
|
/Control-Exception-Base\.html\z/i,
|
|
/Data-Binary-Get-Internal\.html\z/i,
|
|
/Language-Haskell-TH-Lib\.html\z/i,
|
|
/Text-PrettyPrint\.html\z/i,
|
|
/Data-OldTypeable-Internal\.html\z/i,
|
|
/Data-Typeable-Internal\.html\z/i,
|
|
/GHC-IO-Encoding-Types\.html\z/i,
|
|
/System-Posix-Process-Internals\.html\z/i
|
|
]
|
|
|
|
options[:attribution] = <<-HTML
|
|
© The University of Glasgow and others<br>
|
|
Licensed under a BSD-style license (see top of the page).
|
|
HTML
|
|
end
|
|
end
|