History

Update pandas documentation (1.3.4)

Simon Legner committed 5 years ago

Commit 10407441 parent 715a3e74 files · +19 −8Browse files

Unified · Split

4 files
  1. assets/javascripts/templates/pages/about_tmpl.coffee +1 −1
  2. docs/file-scrapers.md +9 −0
  3. lib/docs/filters/pandas/clean_html.rb +4 −2
  4. lib/docs/scrapers/pandas.rb +5 −5
assets/javascripts/templates/pages/about_tmpl.coffee+1−1
@@ -613,7 +613,7 @@ credits = [ · 612 unmodified lines
613613 'https://raw.githubusercontent.com/padrino/padrino-framework/master/padrino/LICENSE.txt'
614614 ], [
615615 'pandas',
616− '2008-2020, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team',
616+ '2008-2021, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team',
617617 'BSD',
618618 'https://raw.githubusercontent.com/pydata/pandas/master/LICENSE'
619619 ], [
docs/file-scrapers.md+9−0
@@ -163,6 +163,15 @@ dpkg -x $PACKAGE ./ · 162 unmodified lines
163163 mv ./usr/share/doc/openjdk-16-jre-headless/api/ path/to/devdocs/docs/openjdk~$VERSION
164164 ```
165165
166+## Pandas
167+
168+```sh
169+mkdir docs/pandas~1
170+cd docs/pandas~1
171+curl https://pandas.pydata.org/docs/pandas.zip
172+bsdtar xf pandas.zip
173+```
174+
166175 ## PHP
167176 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/`.
168177
lib/docs/filters/pandas/clean_html.rb+4−2
@@ -23,6 +23,9 @@ module Docs · 22 unmodified lines
2323 node['data-language'] = 'python'
2424 end
2525
26+ # table of contents "on this page"
27+ css('.toc-item').remove
28+
2629 # sidebar
2730 css('ul.nav.bd-sidenav').remove
2831
@@ -30,8 +33,7 @@ module Docs · 1 unmodified line
3033 css('.headerlink').remove
3134
3235 # next and previous section buttons
33− css('next-link').remove
34− css('prev-link').remove
36+ css('.prev-next-area').remove
3537
3638 css('footer').remove
3739
lib/docs/scrapers/pandas.rb+5−5
@@ -1,5 +1,5 @@
11 module Docs
2− class Pandas < UrlScraper
2+ class Pandas < FileScraper
33 self.name = 'pandas'
44 self.type = 'sphinx'
55 self.root_path = 'index.html'
@@ -8,22 +8,22 @@ module Docs · 2 unmodified lines
88 code: 'https://github.com/pydata/pandas'
99 }
1010
11− html_filters.push 'pandas/clean_html', 'pandas/entries'
12−
1311 options[:skip] = %w(internals.html release.html contributing.html whatsnew.html)
1412 options[:skip_patterns] = [/whatsnew\//]
1513
1614 options[:attribution] = <<-HTML
17− &copy; 2008&ndash;2020, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team<br>
15+ &copy; 2008&ndash;2021, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team<br>
1816 Licensed under the 3-clause BSD License.
1917 HTML
2018
2119 version '1' do
22− self.release = '1.2.0'
20+ self.release = '1.3.4'
2321 self.base_url = "https://pandas.pydata.org/pandas-docs/version/#{self.release}/"
2422
2523 html_filters.push 'pandas/clean_html', 'pandas/entries'
2624
25+ options[:container] = 'main section'
26+
2727 options[:skip_patterns] = [
2828 /development/,
2929 /getting_started/,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t