1
0

scikit_learn.rb 952 B

123456789101112131415161718192021222324252627282930313233343536
  1. module Docs
  2. class ScikitLearn < UrlScraper
  3. self.name = 'scikit-learn'
  4. self.slug = 'scikit_learn'
  5. self.type = 'sphinx'
  6. self.release = '0.17.1'
  7. self.base_url = "http://scikit-learn.org/0.17/"
  8. self.root_path = 'documentation.html'
  9. self.initial_paths = %w(
  10. user_guide.html
  11. supervised_learning.html
  12. unsupervised_learning.html
  13. model_selection.html
  14. data_transforms.html)
  15. self.links = {
  16. home: 'http://scikit-learn.org/',
  17. code: 'https://github.com/scikit-learn/scikit-learn'
  18. }
  19. html_filters.push 'scikit_learn/entries', 'sphinx/clean_html'
  20. options[:container] = '.body'
  21. options[:root_title] = self.name
  22. options[:only] = self.initial_paths
  23. options[:only_patterns] = [/\Amodules/, /\Adatasets/]
  24. options[:attribution] = <<-HTML
  25. &copy; 2007&ndash;2016 The scikit-learn deveopers<br>
  26. Licensed under the 3-clause BSD License.
  27. HTML
  28. end
  29. end