Unified · Split
| @@ -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 | ], [ |
| @@ -163,6 +163,15 @@ dpkg -x $PACKAGE ./ · 162 unmodified lines | |||
| 163 | mv ./usr/share/doc/openjdk-16-jre-headless/api/ path/to/devdocs/docs/openjdk~$VERSION | 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 | ## PHP | 175 | ## PHP |
| 167 | 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/`. | 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 | node['data-language'] = 'python' | 23 | node['data-language'] = 'python' |
| 24 | end | 24 | end |
| 25 | 25 | ||
| 26 | # table of contents "on this page" | ||
| 27 | css('.toc-item').remove | ||
| 28 | |||
| 26 | # sidebar | 29 | # sidebar |
| 27 | css('ul.nav.bd-sidenav').remove | 30 | css('ul.nav.bd-sidenav').remove |
| 28 | 31 | ||
| @@ -30,8 +33,7 @@ module Docs · 1 unmodified line | |||
| 30 | css('.headerlink').remove | 33 | css('.headerlink').remove |
| 31 | 34 | ||
| 32 | # next and previous section buttons | 35 | # next and previous section buttons |
| 33 | css('next-link').remove | 36 | css('.prev-next-area').remove |
| 34 | css('prev-link').remove | ||
| 35 | 37 | ||
| 36 | css('footer').remove | 38 | css('footer').remove |
| 37 | 39 | ||
| @@ -1,5 +1,5 @@ | |||
| 1 | module Docs | 1 | module Docs |
| 2 | class Pandas < UrlScraper | 2 | 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] = <<-HTML | 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 | Licensed under the 3-clause BSD License. | 16 | Licensed under the 3-clause BSD License. |
| 19 | HTML | 17 | HTML |
| 20 | 18 | ||
| 21 | version '1' do | 19 | 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/, |