瀏覽代碼

nim: keep 1.4 docs

Simon Legner 1 年之前
父節點
當前提交
db655520a2
共有 1 個文件被更改,包括 8 次插入1 次删除
  1. 8 1
      lib/docs/scrapers/nim.rb

+ 8 - 1
lib/docs/scrapers/nim.rb

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