소스 검색

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/'