Update Nim documentation (1.4.8)

- Add source code links
pull/1579/head
Enoc 4 years ago
parent 33d0540418
commit dd985908a1

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

@ -13,7 +13,7 @@ module Docs
node['id'] = nodeId node['id'] = nodeId
end 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| css('h1:not(.title), h2, h3, h4').each do |node|
node.name = node.name.sub(/\d/) { |i| i.to_i + 1 } node.name = node.name.sub(/\d/) { |i| i.to_i + 1 }

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

Loading…
Cancel
Save