|
|
@ -1,5 +1,5 @@
|
|
|
|
module Docs
|
|
|
|
module Docs
|
|
|
|
class Ocaml < FileScraper
|
|
|
|
class Ocaml < UrlScraper
|
|
|
|
self.name = 'OCaml'
|
|
|
|
self.name = 'OCaml'
|
|
|
|
self.type = 'ocaml'
|
|
|
|
self.type = 'ocaml'
|
|
|
|
self.root_path = 'index.html'
|
|
|
|
self.root_path = 'index.html'
|
|
|
@ -16,15 +16,20 @@ module Docs
|
|
|
|
|
|
|
|
|
|
|
|
options[:skip_patterns] = [
|
|
|
|
options[:skip_patterns] = [
|
|
|
|
/\Acompilerlibref\//,
|
|
|
|
/\Acompilerlibref\//,
|
|
|
|
/\Alibref\/type_/,
|
|
|
|
/\Aapi\/type_/,
|
|
|
|
/\Alibref\/Stdlib\.\w+\.html/,
|
|
|
|
/\Aapi\/Stdlib\.\w+\.html/,
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
options[:attribution] = <<-HTML
|
|
|
|
options[:attribution] = <<-HTML
|
|
|
|
© 1995-2022 INRIA.
|
|
|
|
© 1995-2024 INRIA.
|
|
|
|
HTML
|
|
|
|
HTML
|
|
|
|
|
|
|
|
|
|
|
|
version '' do
|
|
|
|
version '' do
|
|
|
|
|
|
|
|
self.release = '5.2'
|
|
|
|
|
|
|
|
self.base_url = "https://ocaml.org/manual/#{self.release}/"
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
version '5.0' do
|
|
|
|
self.release = '5.0'
|
|
|
|
self.release = '5.0'
|
|
|
|
self.base_url = "https://v2.ocaml.org/releases/#{self.release}/htmlman/"
|
|
|
|
self.base_url = "https://v2.ocaml.org/releases/#{self.release}/htmlman/"
|
|
|
|
end
|
|
|
|
end
|
|
|
|