Skip to content

Commit ba8472a

Browse files
authored
Merge pull request #2199 from mcagriardic/add/pandas2.2.2
Add pandas 2.2.2 documentation
2 parents 15b8875 + 75a085b commit ba8472a

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

docs/file-scrapers.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,13 @@ mv ./usr/share/doc/openjdk-16-jre-headless/api/ docs/openjdk~$VERSION
183183

184184
## Pandas
185185

186+
From the home directory; `devdocs`, execute below:
187+
186188
```sh
187-
curl https://pandas.pydata.org/docs/pandas.zip | bsdtar --extract --file - --directory=docs/pandas~1
189+
curl https://pandas.pydata.org/docs/pandas.zip -o tmp.zip && unzip tmp.zip -d docs/pandas~2 && rm tmp.zip
188190
```
189191

192+
190193
## PHP
191194
Click the link under the "Many HTML files" column on https://www.php.net/download-docs.php, extract the tarball, change its name to `php` and put it in `docs/`.
192195

lib/docs/scrapers/pandas.rb

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

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

0 commit comments

Comments
 (0)