Jelajahi Sumber

Update Flow documentation (0.22)

Thibaut Courouble 9 tahun lalu
induk
melakukan
9f3f2a75e0
2 mengubah file dengan 3 tambahan dan 2 penghapusan
  1. 1 0
      lib/docs/filters/react/clean_html.rb
  2. 2 2
      lib/docs/scrapers/flow.rb

+ 1 - 0
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

+ 2 - 2
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
-      &copy; 2013&ndash;2015 Facebook Inc.<br>
+      &copy; 2013&ndash;2016 Facebook Inc.<br>
       Licensed under the BSD License.
     HTML
   end