Browse Source

Update Werkzeug documentation (2.1.x)

Simon Legner 3 years ago
parent
commit
64af545cf6

+ 1 - 1
assets/javascripts/templates/pages/about_tmpl.coffee

@@ -924,7 +924,7 @@ credits = [
     'https://creativecommons.org/licenses/by/4.0/'
   ], [
     'Werkzeug',
-    '2007-2021 Pallets',
+    '2007-2022 Pallets',
     'BSD',
     'https://github.com/pallets/werkzeug/blob/master/LICENSE.rst'
   ], [

+ 6 - 1
lib/docs/scrapers/werkzeug.rb

@@ -13,10 +13,15 @@ module Docs
     options[:skip] = %w(changes/)
 
     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://werkzeug.palletsprojects.com/en/#{self.release}/"
+    end
+
     version '2.0' do
       self.release = '2.0.x'
       self.base_url = "https://werkzeug.palletsprojects.com/en/#{self.release}/"