Unified · Split
| @@ -613,7 +613,7 @@ credits = [ · 612 unmodified lines | ||
| 613 | 613 | 'https://raw.githubusercontent.com/padrino/padrino-framework/master/padrino/LICENSE.txt' |
| 614 | 614 | ], [ |
| 615 | 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 | 617 | 'BSD', |
| 618 | 618 | 'https://raw.githubusercontent.com/pydata/pandas/master/LICENSE' |
| 619 | 619 | ], [ |
| @@ -163,6 +163,15 @@ dpkg -x $PACKAGE ./ · 162 unmodified lines | ||
| 163 | 163 | mv ./usr/share/doc/openjdk-16-jre-headless/api/ path/to/devdocs/docs/openjdk~$VERSION |
| 164 | 164 | ``` |
| 165 | 165 | |
| 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 | + | |
| 166 | 175 | ## PHP |
| 167 | 176 | 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/`. |
| 168 | 177 | |
| @@ -23,6 +23,9 @@ module Docs · 22 unmodified lines | ||
| 23 | 23 | node['data-language'] = 'python' |
| 24 | 24 | end |
| 25 | 25 | |
| 26 | + # table of contents "on this page" | |
| 27 | + css('.toc-item').remove | |
| 28 | + | |
| 26 | 29 | # sidebar |
| 27 | 30 | css('ul.nav.bd-sidenav').remove |
| 28 | 31 | |
| @@ -30,8 +33,7 @@ module Docs · 1 unmodified line | ||
| 30 | 33 | css('.headerlink').remove |
| 31 | 34 | |
| 32 | 35 | # next and previous section buttons |
| 33 | − css('next-link').remove | |
| 34 | − css('prev-link').remove | |
| 36 | + css('.prev-next-area').remove | |
| 35 | 37 | |
| 36 | 38 | css('footer').remove |
| 37 | 39 | |
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | module Docs |
| 2 | − class Pandas < UrlScraper | |
| 2 | + class Pandas < FileScraper | |
| 3 | 3 | self.name = 'pandas' |
| 4 | 4 | self.type = 'sphinx' |
| 5 | 5 | self.root_path = 'index.html' |
| @@ -8,22 +8,22 @@ module Docs · 2 unmodified lines | ||
| 8 | 8 | code: 'https://github.com/pydata/pandas' |
| 9 | 9 | } |
| 10 | 10 | |
| 11 | − html_filters.push 'pandas/clean_html', 'pandas/entries' | |
| 12 | − | |
| 13 | 11 | options[:skip] = %w(internals.html release.html contributing.html whatsnew.html) |
| 14 | 12 | options[:skip_patterns] = [/whatsnew\//] |
| 15 | 13 | |
| 16 | 14 | options[:attribution] = <<-HTML |
| 17 | − © 2008–2020, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team<br> | |
| 15 | + © 2008–2021, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team<br> | |
| 18 | 16 | Licensed under the 3-clause BSD License. |
| 19 | 17 | HTML |
| 20 | 18 | |
| 21 | 19 | version '1' do |
| 22 | − self.release = '1.2.0' | |
| 20 | + self.release = '1.3.4' | |
| 23 | 21 | self.base_url = "https://pandas.pydata.org/pandas-docs/version/#{self.release}/" |
| 24 | 22 | |
| 25 | 23 | html_filters.push 'pandas/clean_html', 'pandas/entries' |
| 26 | 24 | |
| 25 | + options[:container] = 'main section' | |
| 26 | + | |
| 27 | 27 | options[:skip_patterns] = [ |
| 28 | 28 | /development/, |
| 29 | 29 | /getting_started/, |