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
183 183
184## Pandas184## Pandas
185 185
186From the home directory; `devdocs`, execute below:
187
186```sh188```sh
187curl https://pandas.pydata.org/docs/pandas.zip | bsdtar --extract --file - --directory=docs/pandas~1189curl https://pandas.pydata.org/docs/pandas.zip -o tmp.zip && unzip tmp.zip -d docs/pandas~2 && rm tmp.zip
188```190```
189 191
192
190## PHP193## PHP
191Click 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/`.194Click 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/`.
192 195
lib/docs/scrapers/pandas.rb+23−0
@@ -16,6 +16,29 @@ module Docs · 15 unmodified lines
16 Licensed under the 3-clause BSD License.16 Licensed under the 3-clause BSD License.
17 HTML17 HTML
18 18
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
19 version '1' do42 version '1' do
20 self.release = '1.5.0'43 self.release = '1.5.0'
21 self.base_url = "https://pandas.pydata.org/pandas-docs/version/#{self.release}/"44 self.base_url = "https://pandas.pydata.org/pandas-docs/version/#{self.release}/"