Skip to content

Commit b18306f

Browse files
committed
Update NumPy documentation (2.4)
1 parent 183e53b commit b18306f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/docs/scrapers/numpy.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module Docs
22
# Requires downloading the documents to local disk first.
33
# Go to https://numpy.org/doc/, click "HTML+zip" to download
4-
# (example url: https://numpy.org/doc/2.2/numpy-html.zip),
4+
# (example url: https://numpy.org/doc/2.4/numpy-html.zip),
55
# then extract into "docs/numpy~#{version}/"
66
class Numpy < FileScraper
77
self.name = 'NumPy'
@@ -30,6 +30,12 @@ class Numpy < FileScraper
3030
Licensed under the 3-clause BSD License.
3131
HTML
3232

33+
version '2.4' do
34+
self.release = '2.4'
35+
self.base_url = "https://numpy.org/doc/#{self.version}/"
36+
options[:container] = nil
37+
end
38+
3339
version '2.2' do
3440
self.release = '2.2'
3541
self.base_url = "https://numpy.org/doc/#{self.version}/"

0 commit comments

Comments
 (0)