History

Merge pull request #1857 from foo-dogsquared/update-scikit-learn

Update scikit-learn documentation (1.1.3)

Simon Legner committed 4 years ago

Commit ae0da692 parents ed1a3ef e40a6ae3 files · +9 −5Browse files

Unified · Split

3 files
  1. assets/javascripts/templates/pages/about_tmpl.coffee +1 −1
  2. lib/docs/filters/scikit_learn/clean_html.rb +4 −0
  3. lib/docs/scrapers/scikit_learn.rb +4 −4
assets/javascripts/templates/pages/about_tmpl.coffee+1−1
@@ -847,7 +847,7 @@ credits = [ · 846 unmodified lines
847847 'https://scikit-image.org/docs/dev/license.html'
848848 ], [
849849 'scikit-learn',
850− '2007-2020 The scikit-learn developers',
850+ '2007-2022 The scikit-learn developers',
851851 'BSD',
852852 'https://raw.githubusercontent.com/scikit-learn/scikit-learn/master/COPYING'
853853 ], [
lib/docs/filters/scikit_learn/clean_html.rb+4−0
@@ -16,6 +16,10 @@ module Docs · 15 unmodified lines
1616 end
1717 end
1818
19+ # Most often comes with a link with the same text so we're removing
20+ # these.
21+ css('.sphx-glr-thumbnail-title').each do |node| node.remove end
22+
1923 css('.sphx-glr-signature').remove
2024
2125 doc
lib/docs/scrapers/scikit_learn.rb+4−4
@@ -3,8 +3,8 @@ module Docs · 2 unmodified lines
33 self.name = 'scikit-learn'
44 self.slug = 'scikit_learn'
55 self.type = 'sphinx'
6− self.release = '0.24.1'
7− self.base_url = 'https://scikit-learn.org/0.24/'
6+ self.release = '1.1.3'
7+ self.base_url = "https://scikit-learn.org/1.1/"
88 self.root_path = 'index.html'
99 self.force_gzip = true
1010 self.links = {
@@ -14,7 +14,7 @@ module Docs · 3 unmodified lines
1414
1515 html_filters.push 'scikit_learn/entries', 'scikit_learn/clean_html', 'sphinx/clean_html', 'title'
1616
17− options[:container] = ->(filter) { filter.root_page? ? 'body > .container' : '.section' }
17+ options[:container] = ->(filter) { filter.root_page? ? 'body > .container' : '#sk-page-content-wrapper > .body' }
1818 options[:skip] = %w(modules/generated/sklearn.experimental.enable_iterative_imputer.html
1919 modules/generated/sklearn.experimental.enable_hist_gradient_boosting.html)
2020 options[:only_patterns] = [/\Amodules/, /\Adatasets/, /\Atutorial/, /\Aauto_examples/]
@@ -24,7 +24,7 @@ module Docs · 3 unmodified lines
2424 options[:max_image_size] = 256_000
2525
2626 options[:attribution] = <<-HTML
27− &copy; 2007&ndash;2020 The scikit-learn developers<br>
27+ &copy; 2007&ndash;2022 The scikit-learn developers<br>
2828 Licensed under the 3-clause BSD License.
2929 HTML
3030