Browse Source

ocaml: update to version 4.11

Simon Legner 5 years ago
parent
commit
a0f6ea2144
2 changed files with 5 additions and 3 deletions
  1. 3 3
      docs/file-scrapers.md
  2. 2 0
      lib/docs/scrapers/ocaml.rb

+ 3 - 3
docs/file-scrapers.md

@@ -80,13 +80,13 @@ $GS = '/usr/local/opt/ghostscript/bin/gs';	# GhostScript
 
 ## OCaml
 
-Download the HTML reference here:
-https://ocaml.org/releases/4.10/ocaml-4.10-refman-html.tar.gz
+Download from https://www.ocaml.org/docs/ the HTML reference:
+https://ocaml.org/releases/4.11/ocaml-4.11-refman-html.tar.gz
 and extract it as `/path/to/devdocs/docs/ocaml`:
 
 ```sh
 cd /path/to/devdocs/docs
-wget https://ocaml.org/releases/4.10/ocaml-4.10-refman-html.tar.gz
+wget https://ocaml.org/releases/4.11/ocaml-4.11-refman-html.tar.gz
 tar xf ocaml-4.10-refman-html.tar.gz --transform 's/htmlman/ocaml/'
 ```
 

+ 2 - 0
lib/docs/scrapers/ocaml.rb

@@ -3,6 +3,8 @@ module Docs
     self.name = 'OCaml'
     self.type = 'ocaml'
     self.root_path = 'index.html'
+    self.release = '4.11'
+    self.base_url = "https://www.ocaml.org/releases/#{self.release}/htmlman/"
     self.links = {
       home: 'https://ocaml.org/',
       code: 'https://github.com/ocaml/ocaml'