Explorar o código

Update Falcon documentation

Phil Scherer %!s(int64=5) %!d(string=hai) anos
pai
achega
b31b8f1e91

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

@@ -293,7 +293,7 @@ credits = [
     'https://raw.githubusercontent.com/expressjs/expressjs.com/gh-pages/LICENSE.md'
   ], [
     'Falcon',
-    '2012-2016 by Rackspace Hosting, Inc. and other contributors',
+    '2019 by Falcon contributors',
     'Apache',
     'https://raw.githubusercontent.com/falconry/falcon/master/LICENSE'
   ], [

+ 2 - 0
lib/docs/filters/falcon/entries.rb

@@ -13,6 +13,8 @@ module Docs
           'Guide'
         when 'api'
           'API'
+        when 'deploy'
+          'Deploy'
         end
       end
 

+ 7 - 2
lib/docs/scrapers/falcon.rb

@@ -11,14 +11,19 @@ module Docs
 
     options[:container] = '.body'
 
-    options[:skip] = %w(user/index.html api/index.html)
+    options[:skip] = %w(user/index.html api/index.html deploy/index.html)
     options[:skip_patterns] = [/\Achanges/, /\A_modules/, /\Acommunity/]
 
     options[:attribution] = <<-HTML
-      &copy; 2012&ndash;2017 by Rackspace Hosting, Inc. and other contributors<br>
+      &copy; 2019 by Falcon contributors<br>
       Licensed under the Apache License, Version 2.0.
     HTML
 
+    version '2.0' do
+      self.release = '2.0.0'
+      self.base_url = "https://falcon.readthedocs.io/en/#{self.release}/"
+    end
+
     version '1.4' do
       self.release = '1.4.1'
       self.base_url = "https://falcon.readthedocs.io/en/#{self.release}/"