Browse Source

Update OCaml documentation (5.0)

Simon Legner 2 năm trước cách đây
mục cha
commit
b614a2c110
1 tập tin đã thay đổi với 10 bổ sung2 xóa
  1. 10 2
      lib/docs/scrapers/ocaml.rb

+ 10 - 2
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