Procházet zdrojové kódy

Update scikit-learn documentation (0.19.1)

Thibaut Courouble před 8 roky
rodič
revize
c1e78ae9a8

+ 1 - 0
lib/docs/filters/scikit_learn/entries.rb

@@ -27,6 +27,7 @@ module Docs
           type = at_css('dt > .descclassname').content.strip
           type.remove! 'sklearn.'
           type.remove! %r{\.\z}
+          type = 'sklearn' if type.blank?
           type
         elsif subpath.start_with?('tutorial')
           'Tutorials'

+ 2 - 1
lib/docs/scrapers/scikit_learn.rb

@@ -3,9 +3,10 @@ module Docs
     self.name = 'scikit-learn'
     self.slug = 'scikit_learn'
     self.type = 'sphinx'
-    self.release = '0.19'
+    self.release = '0.19.1'
     self.base_url = 'http://scikit-learn.org/stable/'
     self.root_path = 'documentation.html'
+    self.force_gzip = true
     self.links = {
       home: 'http://scikit-learn.org/',
       code: 'https://github.com/scikit-learn/scikit-learn'