From dd985908a19c85ef45889f845691aed2536b2054 Mon Sep 17 00:00:00 2001 From: Enoc Date: Fri, 18 Jun 2021 23:44:27 -0600 Subject: [PATCH] Update Nim documentation (1.4.8) - Add source code links --- assets/javascripts/templates/pages/about_tmpl.coffee | 2 +- lib/docs/filters/nim/clean_html.rb | 2 +- lib/docs/scrapers/nim.rb | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee b/assets/javascripts/templates/pages/about_tmpl.coffee index 81a3cdfc..d054f21a 100644 --- a/assets/javascripts/templates/pages/about_tmpl.coffee +++ b/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' ], [ diff --git a/lib/docs/filters/nim/clean_html.rb b/lib/docs/filters/nim/clean_html.rb index 57eeb6ee..89b638fe 100644 --- a/lib/docs/filters/nim/clean_html.rb +++ b/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 } diff --git a/lib/docs/scrapers/nim.rb b/lib/docs/scrapers/nim.rb index 6f17c4fb..5a9d4f00 100644 --- a/lib/docs/scrapers/nim.rb +++ b/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 - © 2006–2020 Andreas Rumpf
+ © 2006–2021 Andreas Rumpf
Licensed under the MIT License. HTML