瀏覽代碼

Update Flask documentation (2.0.x)

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

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

@@ -308,7 +308,7 @@ credits = [
     'https://fishshell.com/docs/current/license.html'
   ], [
     'Flask',
-    '2007-2020 Pallets',
+    '2007-2021 Pallets',
     'BSD',
     'https://github.com/pallets/flask/blob/master/LICENSE.rst'
   ], [

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

@@ -14,10 +14,15 @@ module Docs
     options[:skip_patterns] = [/\Atutorial\//]
 
     options[:attribution] = <<-HTML
-      &copy; 2007&ndash;2020 Pallets<br>
+      &copy; 2007&ndash;2021 Pallets<br>
       Licensed under the BSD 3-clause License.
     HTML
 
+    version '2.0' do
+      self.release = '2.0.x'
+      self.base_url = "https://flask.palletsprojects.com/en/#{self.release}/"
+    end
+
     version '1.1' do
       self.release = '1.1.x'
       self.base_url = "https://flask.palletsprojects.com/en/#{self.release}/"