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.
29 lines
557 B
29 lines
557 B
5 years ago
|
module Docs
|
||
|
class Ocaml < FileScraper
|
||
|
self.name = 'OCaml'
|
||
|
self.type = 'ocaml'
|
||
|
self.root_path = 'index.html'
|
||
|
self.links = {
|
||
|
home: 'https://ocaml.org/',
|
||
|
code: 'https://github.com/ocaml/ocaml'
|
||
|
}
|
||
|
|
||
|
html_filters.push 'ocaml/entries', 'ocaml/clean_html'
|
||
|
|
||
|
options[:skip] = %w(
|
||
|
libref/index.html
|
||
|
)
|
||
|
|
||
|
options[:skip_patterns] = [
|
||
|
/\Acompilerlibref\//,
|
||
|
/\Alibref\/type_/,
|
||
|
/\Alibref\/Stdlib\.\w+\.html/,
|
||
|
]
|
||
|
|
||
|
options[:attribution] = <<-HTML
|
||
|
© INRIA 1995-2020.
|
||
|
HTML
|
||
|
|
||
|
end
|
||
|
end
|