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
613 'https://raw.githubusercontent.com/padrino/padrino-framework/master/padrino/LICENSE.txt'613 'https://raw.githubusercontent.com/padrino/padrino-framework/master/padrino/LICENSE.txt'
614 ], [614 ], [
615 'pandas',615 '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',
617 'BSD',617 'BSD',
618 'https://raw.githubusercontent.com/pydata/pandas/master/LICENSE'618 'https://raw.githubusercontent.com/pydata/pandas/master/LICENSE'
619 ], [619 ], [
docs/file-scrapers.md+9−0
@@ -163,6 +163,15 @@ dpkg -x $PACKAGE ./ · 162 unmodified lines
163mv ./usr/share/doc/openjdk-16-jre-headless/api/ path/to/devdocs/docs/openjdk~$VERSION163mv ./usr/share/doc/openjdk-16-jre-headless/api/ path/to/devdocs/docs/openjdk~$VERSION
164```164```
165 165
166## Pandas
167
168```sh
169mkdir docs/pandas~1
170cd docs/pandas~1
171curl https://pandas.pydata.org/docs/pandas.zip
172bsdtar xf pandas.zip
173```
174
166## PHP175## PHP
167Click 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/`.176Click 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/`.
168 177
lib/docs/filters/pandas/clean_html.rb+4−2
@@ -23,6 +23,9 @@ module Docs · 22 unmodified lines
23 node['data-language'] = 'python'23 node['data-language'] = 'python'
24 end24 end
25 25
26 # table of contents "on this page"
27 css('.toc-item').remove
28
26 # sidebar29 # sidebar
27 css('ul.nav.bd-sidenav').remove30 css('ul.nav.bd-sidenav').remove
28 31
@@ -30,8 +33,7 @@ module Docs · 1 unmodified line
30 css('.headerlink').remove33 css('.headerlink').remove
31 34
32 # next and previous section buttons35 # next and previous section buttons
33 css('next-link').remove36 css('.prev-next-area').remove
34 css('prev-link').remove
35 37
36 css('footer').remove38 css('footer').remove
37 39
lib/docs/scrapers/pandas.rb+5−5
@@ -1,5 +1,5 @@
1module Docs1module Docs
2 class Pandas < UrlScraper2 class Pandas < FileScraper
3 self.name = 'pandas'3 self.name = 'pandas'
4 self.type = 'sphinx'4 self.type = 'sphinx'
5 self.root_path = 'index.html'5 self.root_path = 'index.html'
@@ -8,22 +8,22 @@ module Docs · 2 unmodified lines
8 code: 'https://github.com/pydata/pandas'8 code: 'https://github.com/pydata/pandas'
9 }9 }
10 10
11 html_filters.push 'pandas/clean_html', 'pandas/entries'
12
13 options[:skip] = %w(internals.html release.html contributing.html whatsnew.html)11 options[:skip] = %w(internals.html release.html contributing.html whatsnew.html)
14 options[:skip_patterns] = [/whatsnew\//]12 options[:skip_patterns] = [/whatsnew\//]
15 13
16 options[:attribution] = <<-HTML14 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>
18 Licensed under the 3-clause BSD License.16 Licensed under the 3-clause BSD License.
19 HTML17 HTML
20 18
21 version '1' do19 version '1' do
22 self.release = '1.2.0'20 self.release = '1.3.4'
23 self.base_url = "https://pandas.pydata.org/pandas-docs/version/#{self.release}/"21 self.base_url = "https://pandas.pydata.org/pandas-docs/version/#{self.release}/"
24 22
25 html_filters.push 'pandas/clean_html', 'pandas/entries'23 html_filters.push 'pandas/clean_html', 'pandas/entries'
26 24
25 options[:container] = 'main section'
26
27 options[:skip_patterns] = [27 options[:skip_patterns] = [
28 /development/,28 /development/,
29 /getting_started/,29 /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