瀏覽代碼

Update Django documentation (1.8.0)

Fixes #183.
Thibaut 10 年之前
父節點
當前提交
e52bbcd64c
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      lib/docs/filters/django/entries.rb
  2. 2 2
      lib/docs/scrapers/django.rb

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

@@ -39,7 +39,7 @@ module Docs
       end
 
       def include_default_entry?
-        at_css('#sidebar a[href="index"]')
+        at_css('#sidebar a[href="index"]') || at_css('h1 ~ .section')
       end
     end
   end

+ 2 - 2
lib/docs/scrapers/django.rb

@@ -2,9 +2,9 @@ module Docs
   class Django < FileScraper
     self.name = 'Django'
     self.type = 'sphinx'
-    self.version = '1.7.6'
+    self.version = '1.8.0'
     self.dir = '/Users/Thibaut/DevDocs/Docs/Django'
-    self.base_url = 'https://docs.djangoproject.com/en/1.7/'
+    self.base_url = 'https://docs.djangoproject.com/en/1.8/'
     self.root_path = 'index.html'
     self.links = {
       home: 'https://www.djangoproject.com/',