|
|
|
@ -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<br>
|
|
|
|
|
© 2007–2025 The scikit-learn developers<br>
|
|
|
|
|
Licensed under the 3-clause BSD License.
|
|
|
|
|
HTML
|
|
|
|
|
|
|
|
|
|