ocaml: implement get_latest_version

This commit is contained in:
Simon Legner 2021-01-03 12:07:12 +01:00
parent 655a0d93d8
commit 6d629056a1

View file

@ -26,5 +26,10 @@ module Docs
© INRIA 1995-2020.
HTML
def get_latest_version(opts)
doc = fetch_doc('https://www.ocaml.org/releases/', opts)
doc.css('#main-contents li > a').first.content
end
end
end