瀏覽代碼

Update Werkzeug documentation (2.1.x)

Simon Legner 3 年之前
父節點
當前提交
64af545cf6
共有 2 個文件被更改,包括 7 次插入2 次删除
  1. 1 1
      assets/javascripts/templates/pages/about_tmpl.coffee
  2. 6 1
      lib/docs/scrapers/werkzeug.rb

+ 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}/"