Update NumPy documentation (1.20.1)

pull/1477/head
Simon Legner 4 years ago
parent aebc4f8151
commit 9759b3b676

@ -573,7 +573,7 @@ credits = [
'https://raw.githubusercontent.com/npm/npm/master/LICENSE'
], [
'NumPy',
'2005-2020 NumPy Developers',
'2005-2021 NumPy Developers',
'BSD',
'https://raw.githubusercontent.com/numpy/numpy/master/LICENSE.txt'
], [

@ -2,7 +2,7 @@ module Docs
class Numpy
class CleanHtmlFilter < Filter
def call
at_css('#spc-section-body')
at_css('#spc-section-body, main > div')
end
end
end

@ -12,6 +12,16 @@ module Docs
end
def get_type
if version >= "1.20"
if slug.start_with?('user')
return 'User Guide'
elsif slug.start_with?('dev')
return 'Development'
end
li_a = css('nav li.active > a')
return li_a.last.content if li_a
end
nav_items = css('.nav.nav-pills.pull-left > li')
if nav_items[5]

@ -22,10 +22,16 @@ module Docs
]
options[:attribution] = <<-HTML
&copy; 2005&ndash;2020 NumPy Developers<br>
&copy; 2005&ndash;2021 NumPy Developers<br>
Licensed under the 3-clause BSD License.
HTML
version '1.20' do
self.release = '1.20.1'
self.base_url = "https://numpy.org/doc/#{self.version}/"
options[:container] = nil
end
version '1.19' do
self.release = '1.19.0'
self.base_url = "https://numpy.org/doc/#{self.version}/"

Loading…
Cancel
Save