From 9f3f2a75e012187600d3c942d48d462eb1a8d947 Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sat, 9 Apr 2016 09:15:51 -0400 Subject: [PATCH] Update Flow documentation (0.22) --- lib/docs/filters/react/clean_html.rb | 1 + lib/docs/scrapers/flow.rb | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/docs/filters/react/clean_html.rb b/lib/docs/filters/react/clean_html.rb index 41a96344..e76caaee 100644 --- a/lib/docs/filters/react/clean_html.rb +++ b/lib/docs/filters/react/clean_html.rb @@ -22,6 +22,7 @@ module Docs css('.highlight').each do |node| node.name = 'pre' + node.css('.gutter').remove node['data-language'] = node.at_css('[data-lang]').try(:[], 'data-lang') || 'js' node.content = node.content end diff --git a/lib/docs/scrapers/flow.rb b/lib/docs/scrapers/flow.rb index ba65a676..9c008d03 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.20' + self.release = '0.22' self.base_url = 'http://flowtype.org/docs/' self.root_path = 'about-flow.html' self.links = { @@ -15,7 +15,7 @@ module Docs options[:skip] = %w(coming-soon.html) options[:attribution] = <<-HTML - © 2013–2015 Facebook Inc.
+ © 2013–2016 Facebook Inc.
Licensed under the BSD License. HTML end