Jelajahi Sumber

Update Nim documentation (1.4.8)

- Add source code links
Enoc 4 tahun lalu
induk
melakukan
dd985908a1

+ 1 - 1
assets/javascripts/templates/pages/about_tmpl.coffee

@@ -563,7 +563,7 @@ credits = [
     'https://github.com/openresty/lua-nginx-module#copyright-and-license'
   ], [
     'Nim',
-    '2006-2020 Andreas Rumpf',
+    '2006-2021 Andreas Rumpf',
     'MIT',
     'https://github.com/nim-lang/Nim#license'
   ], [

+ 1 - 1
lib/docs/filters/nim/clean_html.rb

@@ -13,7 +13,7 @@ module Docs
           node['id'] = nodeId
         end
 
-        css('.docinfo', '.footer', 'blockquote > p:empty', '.link-seesrc').remove
+        css('.docinfo', '.footer', 'blockquote > p:empty').remove
 
         css('h1:not(.title), h2, h3, h4').each do |node|
           node.name = node.name.sub(/\d/) { |i| i.to_i + 1 }

+ 2 - 2
lib/docs/scrapers/nim.rb

@@ -1,7 +1,7 @@
 module Docs
   class Nim < UrlScraper
     self.type = 'simple'
-    self.release = '1.4.2'
+    self.release = '1.4.8'
     self.base_url = 'https://nim-lang.org/docs/'
     self.root_path = 'overview.html'
     self.links = {
@@ -14,7 +14,7 @@ module Docs
     options[:skip] = %w(theindex.html docgen.html tut1.html tut2.html tut3.html tools.html)
 
     options[:attribution] = <<-HTML
-      &copy; 2006&ndash;2020 Andreas Rumpf<br>
+      &copy; 2006&ndash;2021 Andreas Rumpf<br>
       Licensed under the MIT License.
     HTML