History

Update scikit-learn documentation (1.6.1)

Simon Legner committed 1 year ago

Commit c70878a1 parent 264b5cc2 files · +5 −4Browse files

Unified · Split

2 files
  1. lib/docs/filters/scikit_learn/clean_html.rb +1 −0
  2. lib/docs/scrapers/scikit_learn.rb +4 −4
lib/docs/filters/scikit_learn/clean_html.rb+1−0
@@ -2,6 +2,7 @@ module Docs · 1 unmodified line
2 class ScikitLearn2 class ScikitLearn
3 class CleanHtmlFilter < Filter3 class CleanHtmlFilter < Filter
4 def call4 def call
5 @doc = at_css('main article', 'main')
5 if root_page?6 if root_page?
6 css('.row').each do |node|7 css('.row').each do |node|
7 html = '<dl>'8 html = '<dl>'
lib/docs/scrapers/scikit_learn.rb+4−4
@@ -3,8 +3,9 @@ module Docs · 2 unmodified lines
3 self.name = 'scikit-learn'3 self.name = 'scikit-learn'
4 self.slug = 'scikit_learn'4 self.slug = 'scikit_learn'
5 self.type = 'sphinx'5 self.type = 'sphinx'
6 self.release = '1.1.3'6 self.release = '1.6.1'
7 self.base_url = "https://scikit-learn.org/1.1/"7 v = self.release[/\d+\.\d+/]
8 self.base_url = "https://scikit-learn.org/#{v}/"
8 self.root_path = 'index.html'9 self.root_path = 'index.html'
9 self.force_gzip = true10 self.force_gzip = true
10 self.links = {11 self.links = {
@@ -14,7 +15,6 @@ module Docs · 3 unmodified lines
14 15
15 html_filters.push 'scikit_learn/entries', 'scikit_learn/clean_html', 'sphinx/clean_html', 'title'16 html_filters.push 'scikit_learn/entries', 'scikit_learn/clean_html', 'sphinx/clean_html', 'title'
16 17
17 options[:container] = ->(filter) { filter.root_page? ? 'body > .container' : '#sk-page-content-wrapper > .body' }
18 options[:skip] = %w(modules/generated/sklearn.experimental.enable_iterative_imputer.html18 options[:skip] = %w(modules/generated/sklearn.experimental.enable_iterative_imputer.html
19 modules/generated/sklearn.experimental.enable_hist_gradient_boosting.html)19 modules/generated/sklearn.experimental.enable_hist_gradient_boosting.html)
20 options[:only_patterns] = [/\Amodules/, /\Adatasets/, /\Atutorial/, /\Aauto_examples/]20 options[:only_patterns] = [/\Amodules/, /\Adatasets/, /\Atutorial/, /\Aauto_examples/]
@@ -24,7 +24,7 @@ module Docs · 3 unmodified lines
24 options[:max_image_size] = 256_00024 options[:max_image_size] = 256_000
25 25
26 options[:attribution] = <<-HTML26 options[:attribution] = <<-HTML
27 &copy; 2007&ndash;2022 The scikit-learn developers<br>27 &copy; 2007&ndash;2025 The scikit-learn developers<br>
28 Licensed under the 3-clause BSD License.28 Licensed under the 3-clause BSD License.
29 HTML29 HTML
30 30