[devdocsgjs/main: 5/64] Update Flask documentation (2.1.x)




commit bbab9d53c660c3b8847777fe26fce3a47ac29ef1
Author: Simon Legner <Simon Legner gmail com>
Date:   Fri Apr 8 21:11:34 2022 +0200

    Update Flask documentation (2.1.x)

 assets/javascripts/templates/pages/about_tmpl.coffee | 2 +-
 lib/docs/scrapers/flask.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 78c2984d..838aba49 100644
--- a/assets/javascripts/templates/pages/about_tmpl.coffee
+++ b/assets/javascripts/templates/pages/about_tmpl.coffee
@@ -324,7 +324,7 @@ credits = [
     'https://fishshell.com/docs/current/license.html'
   ], [
     'Flask',
-    '2007-2021 Pallets',
+    '2007-2022 Pallets',
     'BSD',
     'https://github.com/pallets/flask/blob/master/LICENSE.rst'
   ], [
diff --git a/lib/docs/scrapers/flask.rb b/lib/docs/scrapers/flask.rb
index 4251a61b..7b644b98 100755
--- a/lib/docs/scrapers/flask.rb
+++ b/lib/docs/scrapers/flask.rb
@@ -9,15 +9,20 @@ module Docs
 
     html_filters.push 'flask/entries', 'sphinx/clean_html'
 
-    options[:container] = '.body > .section'
+    options[:container] = '.body > section'
     options[:skip] = %w(extensiondev/ styleguide/ upgrading/ changelog/ license/ contributing/)
     options[:skip_patterns] = [/\Atutorial\//]
 
     options[:attribution] = <<-HTML
-      &copy; 2007&ndash;2021 Pallets<br>
+      &copy; 2007&ndash;2022 Pallets<br>
       Licensed under the BSD 3-clause License.
     HTML
 
+    version '2.1' do
+      self.release = '2.1.x'
+      self.base_url = "https://flask.palletsprojects.com/en/#{self.release}/";
+    end
+
     version '2.0' do
       self.release = '2.0.x'
       self.base_url = "https://flask.palletsprojects.com/en/#{self.release}/";


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