Update scikit-learn documentation (1.6.1)

pull/2181/merge
Simon Legner 2 weeks ago
parent 264b5cc264
commit c70878abe0

@ -2,6 +2,7 @@ module Docs
class ScikitLearn
class CleanHtmlFilter < Filter
def call
@doc = at_css('main article', 'main')
if root_page?
css('.row').each do |node|
html = '<dl>'

@ -3,8 +3,9 @@ module Docs
self.name = 'scikit-learn'
self.slug = 'scikit_learn'
self.type = 'sphinx'
self.release = '1.1.3'
self.base_url = "https://scikit-learn.org/1.1/"
self.release = '1.6.1'
v = self.release[/\d+\.\d+/]
self.base_url = "https://scikit-learn.org/#{v}/"
self.root_path = 'index.html'
self.force_gzip = true
self.links = {
@ -14,7 +15,6 @@ module Docs
html_filters.push 'scikit_learn/entries', 'scikit_learn/clean_html', 'sphinx/clean_html', 'title'
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
&copy; 2007&ndash;2022 The scikit-learn developers<br>
&copy; 2007&ndash;2025 The scikit-learn developers<br>
Licensed under the 3-clause BSD License.
HTML

Loading…
Cancel
Save