From b614a2c110518f7c253c64782f8c126b972b6def Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sun, 25 Dec 2022 11:17:24 +0100 Subject: [PATCH] Update OCaml documentation (5.0) --- lib/docs/scrapers/ocaml.rb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/docs/scrapers/ocaml.rb b/lib/docs/scrapers/ocaml.rb index 0ab64a90..c26572ac 100644 --- a/lib/docs/scrapers/ocaml.rb +++ b/lib/docs/scrapers/ocaml.rb @@ -3,8 +3,6 @@ module Docs self.name = 'OCaml' self.type = 'ocaml' self.root_path = 'index.html' - self.release = '4.14' - self.base_url = "https://v2.ocaml.org/releases/#{self.release}/htmlman/" self.links = { home: 'https://ocaml.org/', code: 'https://github.com/ocaml/ocaml' @@ -26,6 +24,16 @@ module Docs © 1995-2022 INRIA. HTML + version '' do + self.release = '5.0' + self.base_url = "https://v2.ocaml.org/releases/#{self.release}/htmlman/" + end + + version '4.14' do + self.release = '4.14' + self.base_url = "https://v2.ocaml.org/releases/#{self.release}/htmlman/" + end + def get_latest_version(opts) get_latest_github_release('ocaml', 'ocaml', opts) end