Improve Flow scraper entry classification

Closes #680.
pull/704/merge
Thibaut Courouble 7 years ago
parent 0091cc6bd2
commit 28aeb115c0

@ -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

Loading…
Cancel
Save