From 357418d4a398173af0b4ad64b6d1890ae8db4637 Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sun, 24 Jan 2016 15:24:06 -0500 Subject: [PATCH] Version Django documentation (1.8 and 1.9) Ref #25. --- lib/docs/scrapers/django.rb | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/lib/docs/scrapers/django.rb b/lib/docs/scrapers/django.rb index 85504ed6..7dbd6a9f 100644 --- a/lib/docs/scrapers/django.rb +++ b/lib/docs/scrapers/django.rb @@ -2,9 +2,6 @@ module Docs class Django < FileScraper self.name = 'Django' self.type = 'sphinx' - self.release = '1.8.6' - self.dir = '/Users/Thibaut/DevDocs/Docs/Django' - self.base_url = 'https://docs.djangoproject.com/en/1.8/' self.root_path = 'index.html' self.links = { home: 'https://www.djangoproject.com/', @@ -36,5 +33,17 @@ module Docs © Django Software Foundation and individual contributors
Licensed under the BSD License. HTML + + version '1.9' do + self.release = '1.9.1' + self.dir = '/Users/Thibaut/DevDocs/Docs/Django19' + self.base_url = 'https://docs.djangoproject.com/en/1.9/' + end + + version '1.8' do + self.release = '1.8.8' + self.dir = '/Users/Thibaut/DevDocs/Docs/Django18' + self.base_url = 'https://docs.djangoproject.com/en/1.8/' + end end end