|
|
@ -1,7 +1,6 @@
|
|
|
|
module Docs
|
|
|
|
module Docs
|
|
|
|
class Nim < UrlScraper
|
|
|
|
class Nim < UrlScraper
|
|
|
|
self.type = 'simple'
|
|
|
|
self.type = 'simple'
|
|
|
|
self.release = '2.0.2'
|
|
|
|
|
|
|
|
self.base_url = 'https://nim-lang.org/docs/'
|
|
|
|
self.base_url = 'https://nim-lang.org/docs/'
|
|
|
|
self.root_path = 'overview.html'
|
|
|
|
self.root_path = 'overview.html'
|
|
|
|
self.links = {
|
|
|
|
self.links = {
|
|
|
@ -18,6 +17,14 @@ module Docs
|
|
|
|
Licensed under the MIT License.
|
|
|
|
Licensed under the MIT License.
|
|
|
|
HTML
|
|
|
|
HTML
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
version do
|
|
|
|
|
|
|
|
self.release = '2.0.2'
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
version '1' do
|
|
|
|
|
|
|
|
self.release = '1.4.8'
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def get_latest_version(opts)
|
|
|
|
def get_latest_version(opts)
|
|
|
|
doc = fetch_doc('https://nim-lang.org/docs/overview.html', opts)
|
|
|
|
doc = fetch_doc('https://nim-lang.org/docs/overview.html', opts)
|
|
|
|
doc.at_css('.container > .docinfo > tbody > tr:last-child > td').content.strip
|
|
|
|
doc.at_css('.container > .docinfo > tbody > tr:last-child > td').content.strip
|
|
|
|