Update pandas documentation (1.3.4)

pull/1653/head
Simon Legner 3 years ago
parent 715a3e7cb6
commit 1040744f55

@ -613,7 +613,7 @@ credits = [
'https://raw.githubusercontent.com/padrino/padrino-framework/master/padrino/LICENSE.txt'
], [
'pandas',
'2008-2020, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team',
'2008-2021, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team',
'BSD',
'https://raw.githubusercontent.com/pydata/pandas/master/LICENSE'
], [

@ -163,6 +163,15 @@ dpkg -x $PACKAGE ./
mv ./usr/share/doc/openjdk-16-jre-headless/api/ path/to/devdocs/docs/openjdk~$VERSION
```
## Pandas
```sh
mkdir docs/pandas~1
cd docs/pandas~1
curl https://pandas.pydata.org/docs/pandas.zip
bsdtar xf pandas.zip
```
## PHP
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 `/path/to/devdocs/docs/`.

@ -23,6 +23,9 @@ module Docs
node['data-language'] = 'python'
end
# table of contents "on this page"
css('.toc-item').remove
# sidebar
css('ul.nav.bd-sidenav').remove
@ -30,8 +33,7 @@ module Docs
css('.headerlink').remove
# next and previous section buttons
css('next-link').remove
css('prev-link').remove
css('.prev-next-area').remove
css('footer').remove

@ -1,5 +1,5 @@
module Docs
class Pandas < UrlScraper
class Pandas < FileScraper
self.name = 'pandas'
self.type = 'sphinx'
self.root_path = 'index.html'
@ -8,22 +8,22 @@ module Docs
code: 'https://github.com/pydata/pandas'
}
html_filters.push 'pandas/clean_html', 'pandas/entries'
options[:skip] = %w(internals.html release.html contributing.html whatsnew.html)
options[:skip_patterns] = [/whatsnew\//]
options[:attribution] = <<-HTML
&copy; 2008&ndash;2020, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team<br>
&copy; 2008&ndash;2021, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team<br>
Licensed under the 3-clause BSD License.
HTML
version '1' do
self.release = '1.2.0'
self.release = '1.3.4'
self.base_url = "https://pandas.pydata.org/pandas-docs/version/#{self.release}/"
html_filters.push 'pandas/clean_html', 'pandas/entries'
options[:container] = 'main section'
options[:skip_patterns] = [
/development/,
/getting_started/,

Loading…
Cancel
Save