Unified · Split
| @@ -1,4 +1,8 @@ | ||
| 1 | 1 | 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}/" | |
| 2 | 6 | class Numpy < FileScraper |
| 3 | 7 | self.name = 'NumPy' |
| 4 | 8 | self.type = 'sphinx' |
| @@ -26,6 +30,18 @@ module Docs · 21 unmodified lines | ||
| 26 | 30 | Licensed under the 3-clause BSD License. |
| 27 | 31 | HTML |
| 28 | 32 | |
| 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 | + | |
| 29 | 45 | version '2.0' do |
| 30 | 46 | self.release = '2.0.1' |
| 31 | 47 | self.base_url = "https://numpy.org/doc/#{self.version}/" |