History

Merge pull request #2199 from mcagriardic/add/pandas2.2.2

Add pandas 2.2.2 documentation

Simon Legner committed 2 years ago

Commit ba8472a2 parents 15b8875 75a085b2 files · +27 −1Browse files

Unified · Split

2 files
  1. docs/file-scrapers.md +4 −1
  2. lib/docs/scrapers/pandas.rb +23 −0
docs/file-scrapers.md+4−1
@@ -183,10 +183,13 @@ mv ./usr/share/doc/openjdk-16-jre-headless/api/ docs/openjdk~$VERSION · 182 unmodified lines
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+23−0
@@ -16,6 +16,29 @@ module Docs · 15 unmodified lines
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}/"