From 6f3c1167e265b2207d6f93abc8857ad29fc79d5c Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Thu, 13 May 2021 11:40:25 +0200 Subject: [PATCH] Update Flask documentation (2.0.x) --- assets/javascripts/templates/pages/about_tmpl.coffee | 2 +- lib/docs/scrapers/flask.rb | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee b/assets/javascripts/templates/pages/about_tmpl.coffee index dc9cd856..de411be7 100644 --- a/assets/javascripts/templates/pages/about_tmpl.coffee +++ b/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' ], [ diff --git a/lib/docs/scrapers/flask.rb b/lib/docs/scrapers/flask.rb index 2d3c0802..4251a61b 100755 --- a/lib/docs/scrapers/flask.rb +++ b/lib/docs/scrapers/flask.rb @@ -14,10 +14,15 @@ module Docs options[:skip_patterns] = [/\Atutorial\//] options[:attribution] = <<-HTML - © 2007–2020 Pallets
+ © 2007–2021 Pallets
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}/"