diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee b/assets/javascripts/templates/pages/about_tmpl.coffee
index a5edf995..768f23d0 100644
--- a/assets/javascripts/templates/pages/about_tmpl.coffee
+++ b/assets/javascripts/templates/pages/about_tmpl.coffee
@@ -847,7 +847,7 @@ credits = [
'https://scikit-image.org/docs/dev/license.html'
], [
'scikit-learn',
- '2007-2020 The scikit-learn developers',
+ '2007-2022 The scikit-learn developers',
'BSD',
'https://raw.githubusercontent.com/scikit-learn/scikit-learn/master/COPYING'
], [
diff --git a/lib/docs/filters/scikit_learn/clean_html.rb b/lib/docs/filters/scikit_learn/clean_html.rb
index ca95d7f4..530df12d 100644
--- a/lib/docs/filters/scikit_learn/clean_html.rb
+++ b/lib/docs/filters/scikit_learn/clean_html.rb
@@ -16,6 +16,10 @@ module Docs
end
end
+ # Most often comes with a link with the same text so we're removing
+ # these.
+ css('.sphx-glr-thumbnail-title').each do |node| node.remove end
+
css('.sphx-glr-signature').remove
doc
diff --git a/lib/docs/scrapers/scikit_learn.rb b/lib/docs/scrapers/scikit_learn.rb
index 9511e4ba..45268c4b 100644
--- a/lib/docs/scrapers/scikit_learn.rb
+++ b/lib/docs/scrapers/scikit_learn.rb
@@ -3,8 +3,8 @@ module Docs
self.name = 'scikit-learn'
self.slug = 'scikit_learn'
self.type = 'sphinx'
- self.release = '0.24.1'
- self.base_url = 'https://scikit-learn.org/0.24/'
+ self.release = '1.1.3'
+ self.base_url = "https://scikit-learn.org/1.1/"
self.root_path = 'index.html'
self.force_gzip = true
self.links = {
@@ -14,7 +14,7 @@ module Docs
html_filters.push 'scikit_learn/entries', 'scikit_learn/clean_html', 'sphinx/clean_html', 'title'
- options[:container] = ->(filter) { filter.root_page? ? 'body > .container' : '.section' }
+ options[:container] = ->(filter) { filter.root_page? ? 'body > .container' : '#sk-page-content-wrapper > .body' }
options[:skip] = %w(modules/generated/sklearn.experimental.enable_iterative_imputer.html
modules/generated/sklearn.experimental.enable_hist_gradient_boosting.html)
options[:only_patterns] = [/\Amodules/, /\Adatasets/, /\Atutorial/, /\Aauto_examples/]
@@ -24,7 +24,7 @@ module Docs
options[:max_image_size] = 256_000
options[:attribution] = <<-HTML
- © 2007–2020 The scikit-learn developers
+ © 2007–2022 The scikit-learn developers
Licensed under the 3-clause BSD License.
HTML