diff --git a/lib/docs/filters/scikit_learn/clean_html.rb b/lib/docs/filters/scikit_learn/clean_html.rb index 530df12d..afcd2c2a 100644 --- a/lib/docs/filters/scikit_learn/clean_html.rb +++ b/lib/docs/filters/scikit_learn/clean_html.rb @@ -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 = '
' diff --git a/lib/docs/scrapers/scikit_learn.rb b/lib/docs/scrapers/scikit_learn.rb index 45268c4b..564b5a30 100644 --- a/lib/docs/scrapers/scikit_learn.rb +++ b/lib/docs/scrapers/scikit_learn.rb @@ -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 - © 2007–2022 The scikit-learn developers
+ © 2007–2025 The scikit-learn developers
Licensed under the 3-clause BSD License. HTML