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

Update scikit-learn documentation (1.1.3)
pull/1862/head
Simon Legner 2 years ago committed by GitHub
commit ae0da6947a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -847,7 +847,7 @@ credits = [
'https://scikit-image.org/docs/dev/license.html' 'https://scikit-image.org/docs/dev/license.html'
], [ ], [
'scikit-learn', 'scikit-learn',
'2007-2020 The scikit-learn developers', '2007-2022 The scikit-learn developers',
'BSD', 'BSD',
'https://raw.githubusercontent.com/scikit-learn/scikit-learn/master/COPYING' 'https://raw.githubusercontent.com/scikit-learn/scikit-learn/master/COPYING'
], [ ], [

@ -16,6 +16,10 @@ module Docs
end end
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 css('.sphx-glr-signature').remove
doc doc

@ -3,8 +3,8 @@ module Docs
self.name = 'scikit-learn' self.name = 'scikit-learn'
self.slug = 'scikit_learn' self.slug = 'scikit_learn'
self.type = 'sphinx' self.type = 'sphinx'
self.release = '0.24.1' self.release = '1.1.3'
self.base_url = 'https://scikit-learn.org/0.24/' self.base_url = "https://scikit-learn.org/1.1/"
self.root_path = 'index.html' self.root_path = 'index.html'
self.force_gzip = true self.force_gzip = true
self.links = { self.links = {
@ -14,7 +14,7 @@ module Docs
html_filters.push 'scikit_learn/entries', 'scikit_learn/clean_html', 'sphinx/clean_html', 'title' 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 options[:skip] = %w(modules/generated/sklearn.experimental.enable_iterative_imputer.html
modules/generated/sklearn.experimental.enable_hist_gradient_boosting.html) modules/generated/sklearn.experimental.enable_hist_gradient_boosting.html)
options[:only_patterns] = [/\Amodules/, /\Adatasets/, /\Atutorial/, /\Aauto_examples/] options[:only_patterns] = [/\Amodules/, /\Adatasets/, /\Atutorial/, /\Aauto_examples/]
@ -24,7 +24,7 @@ module Docs
options[:max_image_size] = 256_000 options[:max_image_size] = 256_000
options[:attribution] = <<-HTML options[:attribution] = <<-HTML
&copy; 2007&ndash;2020 The scikit-learn developers<br> &copy; 2007&ndash;2022 The scikit-learn developers<br>
Licensed under the 3-clause BSD License. Licensed under the 3-clause BSD License.
HTML HTML

Loading…
Cancel
Save