Skip to content

Commit 6f91fc4

Browse files
authored
Merge pull request #2514 from blahgeek/numpy-2.2
Add numpy doc version 2.1 and 2.2
2 parents fafde1b + 7542850 commit 6f91fc4

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

lib/docs/scrapers/numpy.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
module Docs
2+
# Requires downloading the documents to local disk first.
3+
# Go to https://numpy.org/doc/, click "HTML+zip" to download
4+
# (example url: https://numpy.org/doc/2.2/numpy-html.zip),
5+
# then extract into "docs/numpy~#{version}/"
26
class Numpy < FileScraper
37
self.name = 'NumPy'
48
self.type = 'sphinx'
@@ -26,6 +30,18 @@ class Numpy < FileScraper
2630
Licensed under the 3-clause BSD License.
2731
HTML
2832

33+
version '2.2' do
34+
self.release = '2.2'
35+
self.base_url = "https://numpy.org/doc/#{self.version}/"
36+
options[:container] = nil
37+
end
38+
39+
version '2.1' do
40+
self.release = '2.1'
41+
self.base_url = "https://numpy.org/doc/#{self.version}/"
42+
options[:container] = nil
43+
end
44+
2945
version '2.0' do
3046
self.release = '2.0.1'
3147
self.base_url = "https://numpy.org/doc/#{self.version}/"

public/icons/docs/numpy/16.png

287 Bytes
Loading
-148 Bytes
Loading

public/icons/docs/numpy/SOURCE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
https://github.com/numpy/numpy/blob/master/doc/source/_static/numpylogo.svg
1+
https://github.com/numpy/numpy/tree/main/doc/source/_static/favicon

0 commit comments

Comments
 (0)