You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
devdocs/lib/docs/scrapers/scikit_learn.rb

28 lines
949 B

8 years ago
module Docs
class ScikitLearn < UrlScraper
self.name = 'scikit-learn'
self.slug = 'scikit_learn'
self.type = 'sphinx'
self.release = '0.18'
self.base_url = 'http://scikit-learn.org/stable/'
8 years ago
self.root_path = 'documentation.html'
self.links = {
home: 'http://scikit-learn.org/',
code: 'https://github.com/scikit-learn/scikit-learn'
}
html_filters.push 'scikit_learn/entries', 'scikit_learn/clean_html', 'sphinx/clean_html'
8 years ago
options[:container] = ->(filter) { filter.root_page? ? '.container-index' : '.body' }
options[:skip] = %w(tutorial/statistical_inference/finding_help.html)
options[:only_patterns] = [/\Amodules/, /\Adatasets/, /\Atutorial/, /\Aauto_examples/]
options[:skip_patterns] = [/\Adatasets\/(?!index)/]
8 years ago
options[:attribution] = <<-HTML
&copy; 2007&ndash;2016 The scikit-learn developers<br>
8 years ago
Licensed under the 3-clause BSD License.
HTML
end
end