Prechádzať zdrojové kódy

Update Flask documentation (2.1.x)

Simon Legner 3 rokov pred
rodič
commit
bbab9d53c6

+ 1 - 1
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'
   ], [

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