Unified · Split
| @@ -1,6 +1,14 @@ | ||
| 1 | 1 | module Docs |
| 2 | 2 | class ReactRouter |
| 3 | 3 | class EntriesFilter < Docs::EntriesFilter |
| 4 | + def get_name | |
| 5 | + at_css('.markdown h1').content | |
| 6 | + end | |
| 7 | + | |
| 8 | + def get_type | |
| 9 | + slug.split('/').first.capitalize | |
| 10 | + end | |
| 11 | + | |
| 4 | 12 | def additional_entries |
| 5 | 13 | entries = [] |
| 6 | 14 | css('h2[id], h3[id]').each do |node| |
| @@ -3,15 +3,17 @@ module Docs · 2 unmodified lines | ||
| 3 | 3 | self.name = 'React Router' |
| 4 | 4 | self.slug = 'react_router' |
| 5 | 5 | self.type = 'simple' |
| 6 | − self.release = '6.3.0' | |
| 7 | − self.base_url = 'https://reactrouterdotcom.fly.dev/docs/en/v6/api' | |
| 6 | + self.release = '6.4.1' | |
| 7 | + self.base_url = 'https://reactrouterdotcom.fly.dev/docs/en/v6' | |
| 8 | 8 | |
| 9 | 9 | self.links = { |
| 10 | 10 | home: 'https://reactrouterdotcom.fly.dev/', |
| 11 | 11 | code: 'https://github.com/remix-run/react-router' |
| 12 | 12 | } |
| 13 | 13 | |
| 14 | − html_filters.push 'react_router/entries', 'react_router/clean_html', 'title' | |
| 14 | + html_filters.push 'react_router/entries', 'react_router/clean_html' | |
| 15 | + | |
| 16 | + options[:skip_patterns] = [/upgrading/] | |
| 15 | 17 | |
| 16 | 18 | options[:attribution] = <<-HTML |
| 17 | 19 | © React Training 2015-2019<br> |