[devdocsgjs/main: 1651/1867] Update Jinja documentation (3.0.x)




commit f378bc0e98a44e69c524be23307a66345808253a
Author: Simon Legner <Simon Legner gmail com>
Date:   Thu May 13 12:13:02 2021 +0200

    Update Jinja documentation (3.0.x)

 assets/javascripts/templates/pages/about_tmpl.coffee | 2 +-
 lib/docs/scrapers/jinja.rb                           | 9 +++++++--
 2 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee 
b/assets/javascripts/templates/pages/about_tmpl.coffee
index 9124d696..ffecb8ab 100644
--- a/assets/javascripts/templates/pages/about_tmpl.coffee
+++ b/assets/javascripts/templates/pages/about_tmpl.coffee
@@ -413,7 +413,7 @@ credits = [
     'https://raw.githubusercontent.com/facebook/jest/master/LICENSE'
   ], [
     'Jinja',
-    '2007-2020 Pallets',
+    '2007-2021 Pallets',
     'BSD',
     'https://github.com/pallets/jinja/blob/master/LICENSE.rst'
   ], [
diff --git a/lib/docs/scrapers/jinja.rb b/lib/docs/scrapers/jinja.rb
index f38af56d..a7c59ee3 100755
--- a/lib/docs/scrapers/jinja.rb
+++ b/lib/docs/scrapers/jinja.rb
@@ -9,14 +9,19 @@ module Docs
 
     html_filters.push 'jinja/entries', 'sphinx/clean_html'
 
-    options[:container] = '.body > .section'
+    options[:container] = '.body > section'
     options[:skip] = %w(integration/ switching/ faq/ changelog/ search/ genindex/)
 
     options[:attribution] = <<-HTML
-      &copy; 2007&ndash;2020 Pallets<br>
+      &copy; 2007&ndash;2021 Pallets<br>
       Licensed under the BSD 3-clause License.
     HTML
 
+    version '3.0' do
+      self.release = '3.0.x'
+      self.base_url = "https://jinja.palletsprojects.com/en/#{self.release}/";
+    end
+
     version '2.11' do
       self.release = '2.11.x'
       self.base_url = "https://jinja.palletsprojects.com/en/#{self.release}/";


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