diff --git a/lib/docs/filters/react_router/entries.rb b/lib/docs/filters/react_router/entries.rb index 862cf572..a76b7641 100644 --- a/lib/docs/filters/react_router/entries.rb +++ b/lib/docs/filters/react_router/entries.rb @@ -1,6 +1,14 @@ module Docs class ReactRouter class EntriesFilter < Docs::EntriesFilter + def get_name + at_css('.markdown h1').content + end + + def get_type + slug.split('/').first.capitalize + end + def additional_entries entries = [] css('h2[id], h3[id]').each do |node| diff --git a/lib/docs/scrapers/react_router.rb b/lib/docs/scrapers/react_router.rb index 3d04d0fe..64318f5b 100644 --- a/lib/docs/scrapers/react_router.rb +++ b/lib/docs/scrapers/react_router.rb @@ -3,15 +3,17 @@ module Docs self.name = 'React Router' self.slug = 'react_router' self.type = 'simple' - self.release = '6.3.0' - self.base_url = 'https://reactrouterdotcom.fly.dev/docs/en/v6/api' + self.release = '6.4.1' + self.base_url = 'https://reactrouterdotcom.fly.dev/docs/en/v6' self.links = { home: 'https://reactrouterdotcom.fly.dev/', code: 'https://github.com/remix-run/react-router' } - html_filters.push 'react_router/entries', 'react_router/clean_html', 'title' + html_filters.push 'react_router/entries', 'react_router/clean_html' + + options[:skip_patterns] = [/upgrading/] options[:attribution] = <<-HTML © React Training 2015-2019