diff --git a/lib/docs/filters/react/entries.rb b/lib/docs/filters/react/entries.rb index 9488432b..2a22dc22 100644 --- a/lib/docs/filters/react/entries.rb +++ b/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 diff --git a/lib/docs/scrapers/flow.rb b/lib/docs/scrapers/flow.rb index bc7f577e..c1d0674e 100644 --- a/lib/docs/scrapers/flow.rb +++ b/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 - © 2013–2016 Facebook Inc.
+ © 2013–present Facebook Inc.
Licensed under the BSD License. HTML end