Преглед на файлове

Fix missing pages in Python docs

Fix #262.
Thibaut преди 10 години
родител
ревизия
05b38d867c
променени са 3 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 1 1
      lib/docs/filters/python/entries.rb
  2. 1 1
      lib/docs/filters/python2/entries.rb
  3. 1 1
      lib/docs/scrapers/python2.rb

+ 1 - 1
lib/docs/filters/python/entries.rb

@@ -45,7 +45,7 @@ module Docs
       end
 
       def include_default_entry?
-        !at_css('.body > .section:only-child > .toctree-wrapper:last-child') && !type.in?(%w(Language Superseded))
+        !at_css('.body > .section:only-child > .toctree-wrapper:last-child') && !type.in?(%w(Superseded))
       end
 
       def additional_entries

+ 1 - 1
lib/docs/filters/python2/entries.rb

@@ -49,7 +49,7 @@ module Docs
       end
 
       def include_default_entry?
-        !at_css('.body > .section:only-child > .toctree-wrapper:last-child') && !type.in?(%w(Language Superseded SunOS))
+        !at_css('.body > .section:only-child > .toctree-wrapper:last-child') && !type.in?(%w(Superseded SunOS))
       end
 
       def additional_entries

+ 1 - 1
lib/docs/scrapers/python2.rb

@@ -2,7 +2,7 @@ module Docs
   class Python2 < FileScraper
     self.name = 'Python 2'
     self.slug = 'python2'
-    self.version = '2.7.9'
+    self.version = '2.7.10'
     self.type = 'sphinx'
     self.dir = '/Users/Thibaut/DevDocs/Docs/Python2' # downloaded from docs.python.org/2.7/download.html
     self.base_url = 'http://docs.python.org/2.7/'