Pārlūkot izejas kodu

Update Flow documentation (0.37.4)

Thibaut Courouble 9 gadi atpakaļ
vecāks
revīzija
c954e6db82
2 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. 1 0
      lib/docs/filters/react/entries.rb
  2. 2 2
      lib/docs/scrapers/flow.rb

+ 1 - 0
lib/docs/filters/react/entries.rb

@@ -7,6 +7,7 @@ module Docs
 
       def get_type
         link = at_css('.nav-docs-section .active, .toc .active')
+        return 'Miscellaneous' unless link
         section = link.ancestors('.nav-docs-section, section').first
         type = section.at_css('h3').content.strip
         type

+ 2 - 2
lib/docs/scrapers/flow.rb

@@ -1,7 +1,7 @@
 module Docs
   class Flow < React
     self.type = 'react'
-    self.release = '0.34'
+    self.release = '0.37.4'
     self.base_url = 'https://flowtype.org/docs/'
     self.root_path = 'getting-started.html'
     self.links = {
@@ -14,7 +14,7 @@ module Docs
     options[:only_patterns] = nil
 
     options[:attribution] = <<-HTML
-      &copy; 2013&ndash;2016 Facebook Inc.<br>
+      &copy; 2013&ndash;present Facebook Inc.<br>
       Licensed under the BSD License.
     HTML
   end