Browse Source

Improve Flow scraper entry classification

Closes #680.
Thibaut Courouble 8 năm trước cách đây
mục cha
commit
28aeb115c0
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      lib/docs/filters/flow/entries.rb

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

@@ -6,6 +6,7 @@ module Docs
       end
 
       def get_type
+        return 'React' if slug.start_with?('react')
         type = at_css('.guide-nav .nav-item').content.strip
         type.remove! %r{ \(.*}
         type