From a0f6ea2144793d25682c7a6d1f0ae41d116e6c72 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sun, 3 Jan 2021 11:56:45 +0100 Subject: [PATCH] ocaml: update to version 4.11 --- docs/file-scrapers.md | 6 +++--- lib/docs/scrapers/ocaml.rb | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/file-scrapers.md b/docs/file-scrapers.md index b1567859..38b59093 100644 --- a/docs/file-scrapers.md +++ b/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/' ``` diff --git a/lib/docs/scrapers/ocaml.rb b/lib/docs/scrapers/ocaml.rb index 9bf72d06..6a3e448c 100644 --- a/lib/docs/scrapers/ocaml.rb +++ b/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'