[devdocsgjs/main: 15/15] Update Django documentation (4.1)




commit b3c56d8c72612f50f657c35571367466b12c28e6
Author: Simon Legner <Simon Legner gmail com>
Date:   Wed Aug 3 20:56:43 2022 +0200

    Update Django documentation (4.1)

 lib/docs/scrapers/django.rb | 27 ++++++++++++++++-----------
 1 file changed, 16 insertions(+), 11 deletions(-)
---
diff --git a/lib/docs/scrapers/django.rb b/lib/docs/scrapers/django.rb
index d22e2083..0e8b35f5 100644
--- a/lib/docs/scrapers/django.rb
+++ b/lib/docs/scrapers/django.rb
@@ -34,59 +34,64 @@ module Docs
       Licensed under the BSD License.
     HTML
 
+    version '4.1' do
+      self.release = '4.1'
+      self.base_url = "https://docs.djangoproject.com/en/#{self.version}/";
+    end
+
     version '4.0' do
       self.release = '4.0'
-      self.base_url = 'https://docs.djangoproject.com/en/4.0/'
+      self.base_url = "https://docs.djangoproject.com/en/#{self.version}/";
     end
 
     version '3.2' do
       self.release = '3.2'
-      self.base_url = 'https://docs.djangoproject.com/en/3.2/'
+      self.base_url = "https://docs.djangoproject.com/en/#{self.version}/";
     end
 
     version '3.1' do
       self.release = '3.1.4'
-      self.base_url = 'https://docs.djangoproject.com/en/3.1/'
+      self.base_url = "https://docs.djangoproject.com/en/#{self.version}/";
     end
 
     version '3.0' do
       self.release = '3.0.11'
-      self.base_url = 'https://docs.djangoproject.com/en/3.0/'
+      self.base_url = "https://docs.djangoproject.com/en/#{self.version}/";
     end
 
     version '2.2' do
       self.release = '2.2.17'
-      self.base_url = 'https://docs.djangoproject.com/en/2.2/'
+      self.base_url = "https://docs.djangoproject.com/en/#{self.version}/";
     end
 
     version '2.1' do
       self.release = '2.1.15'
-      self.base_url = 'https://docs.djangoproject.com/en/2.1/'
+      self.base_url = "https://docs.djangoproject.com/en/#{self.version}/";
     end
 
     version '2.0' do
       self.release = '2.0.13'
-      self.base_url = 'https://docs.djangoproject.com/en/2.0/'
+      self.base_url = "https://docs.djangoproject.com/en/#{self.version}/";
     end
 
     version '1.11' do
       self.release = '1.11.29'
-      self.base_url = 'https://docs.djangoproject.com/en/1.11/'
+      self.base_url = "https://docs.djangoproject.com/en/#{self.version}/";
     end
 
     version '1.10' do
       self.release = '1.10.8'
-      self.base_url = 'https://docs.djangoproject.com/en/1.10/'
+      self.base_url = "https://docs.djangoproject.com/en/#{self.version}/";
     end
 
     version '1.9' do
       self.release = '1.9.13'
-      self.base_url = 'https://docs.djangoproject.com/en/1.9/'
+      self.base_url = "https://docs.djangoproject.com/en/#{self.version}/";
     end
 
     version '1.8' do
       self.release = '1.8.18'
-      self.base_url = 'https://docs.djangoproject.com/en/1.8/'
+      self.base_url = "https://docs.djangoproject.com/en/#{self.version}/";
     end
 
     def get_latest_version(opts)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]