Update OCaml documentation (5.0)

This commit is contained in:
Simon Legner 2022-12-25 11:17:24 +01:00
parent 90e04e29dc
commit b614a2c110

View file

@ -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