Update OCaml documentation (4.12)

pull/1492/head
Simon Legner 4 years ago
parent 6f7ff4ddd3
commit 1f6d319334

@ -578,7 +578,7 @@ credits = [
'https://raw.githubusercontent.com/numpy/numpy/master/LICENSE.txt' 'https://raw.githubusercontent.com/numpy/numpy/master/LICENSE.txt'
], [ ], [
'OCaml', 'OCaml',
'1995-2020 Inria', '1995-2021 INRIA',
'CC BY-SA', 'CC BY-SA',
'https://ocaml.org/docs/' 'https://ocaml.org/docs/'
], [ ], [

@ -2,7 +2,7 @@ module Docs
class Ocaml class Ocaml
class EntriesFilter < Docs::EntriesFilter class EntriesFilter < Docs::EntriesFilter
def get_name def get_name
title = context[:html_title].gsub(/\u00A0/, " ") title = context[:html_title].gsub(/[[:space:]\u200d]+/, " ")
title = title.split.join(" ").strip title = title.split.join(" ").strip
title.gsub!(/^Chapter /, "") title.gsub!(/^Chapter /, "")

@ -3,7 +3,7 @@ module Docs
self.name = 'OCaml' self.name = 'OCaml'
self.type = 'ocaml' self.type = 'ocaml'
self.root_path = 'index.html' self.root_path = 'index.html'
self.release = '4.11' self.release = '4.12'
self.base_url = "https://www.ocaml.org/releases/#{self.release}/htmlman/" self.base_url = "https://www.ocaml.org/releases/#{self.release}/htmlman/"
self.links = { self.links = {
home: 'https://ocaml.org/', home: 'https://ocaml.org/',
@ -23,7 +23,7 @@ module Docs
] ]
options[:attribution] = <<-HTML options[:attribution] = <<-HTML
&copy; INRIA 1995-2020. &copy; 1995-2021 INRIA.
HTML HTML
def get_latest_version(opts) def get_latest_version(opts)

Loading…
Cancel
Save