Skip to content

Commit c70878a

Browse files
committed
Update scikit-learn documentation (1.6.1)
1 parent 264b5cc commit c70878a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lib/docs/filters/scikit_learn/clean_html.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ module Docs
22
class ScikitLearn
33
class CleanHtmlFilter < Filter
44
def call
5+
@doc = at_css('main article', 'main')
56
if root_page?
67
css('.row').each do |node|
78
html = '<dl>'

lib/docs/scrapers/scikit_learn.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ class ScikitLearn < UrlScraper
33
self.name = 'scikit-learn'
44
self.slug = 'scikit_learn'
55
self.type = 'sphinx'
6-
self.release = '1.1.3'
7-
self.base_url = "https://scikit-learn.org/1.1/"
6+
self.release = '1.6.1'
7+
v = self.release[/\d+\.\d+/]
8+
self.base_url = "https://scikit-learn.org/#{v}/"
89
self.root_path = 'index.html'
910
self.force_gzip = true
1011
self.links = {
@@ -14,7 +15,6 @@ class ScikitLearn < UrlScraper
1415

1516
html_filters.push 'scikit_learn/entries', 'scikit_learn/clean_html', 'sphinx/clean_html', 'title'
1617

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 @@ class ScikitLearn < UrlScraper
2424
options[:max_image_size] = 256_000
2525

2626
options[:attribution] = <<-HTML
27-
&copy; 2007&ndash;2022 The scikit-learn developers<br>
27+
&copy; 2007&ndash;2025 The scikit-learn developers<br>
2828
Licensed under the 3-clause BSD License.
2929
HTML
3030

0 commit comments

Comments
 (0)