mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
ocaml: implement get_latest_version
This commit is contained in:
parent
655a0d93d8
commit
6d629056a1
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue