Переглянути джерело

Improve Flow scraper entry classification

Closes #680.
Thibaut Courouble 8 роки тому
батько
коміт
28aeb115c0
1 змінених файлів з 1 додано та 0 видалено
  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