Skip to content

Commit 5e231a1

Browse files
committed
Update pandas documentation (3.0.8)
1 parent 5d2405d commit 5e231a1

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

docs/file-scrapers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ mv ./usr/share/doc/openjdk-16-jre-headless/api/ docs/openjdk~$VERSION
197197
From the home directory; `devdocs`, execute below:
198198

199199
```sh
200-
curl https://pandas.pydata.org/docs/pandas.zip -o tmp.zip && unzip tmp.zip -d docs/pandas~2 && rm tmp.zip
200+
curl https://pandas.pydata.org/docs/pandas.zip -o tmp.zip && unzip tmp.zip -d docs/pandas~3 && rm tmp.zip
201201
```
202202

203203

lib/docs/scrapers/pandas.rb

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,29 @@ class Pandas < FileScraper
1818
Licensed under the 3-clause BSD License.
1919
HTML
2020

21+
version '3' do
22+
self.release = '3.0.8'
23+
self.base_url = "https://pandas.pydata.org/pandas-docs/version/#{self.release}/"
24+
25+
html_filters.push 'pandas/clean_html', 'pandas/entries'
26+
27+
options[:container] = 'main section'
28+
29+
options[:skip_patterns] = [
30+
/development/,
31+
/getting_started/,
32+
/whatsnew/
33+
]
34+
35+
options[:skip] = [
36+
'panel.html',
37+
'pandas.pdf',
38+
'pandas.zip',
39+
'ecosystem.html'
40+
]
41+
42+
end
43+
2144
version '2' do
2245
self.release = '2.3.0'
2346
self.base_url = "https://pandas.pydata.org/pandas-docs/version/#{self.release}/"

0 commit comments

Comments
 (0)