-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Expand file tree
/
Copy pathreact_router.rb
More file actions
29 lines (24 loc) · 771 Bytes
/
react_router.rb
File metadata and controls
29 lines (24 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
module Docs
class ReactRouter < UrlScraper
self.name = 'React Router'
self.slug = 'react_router'
self.type = 'simple'
self.release = '6.14.1'
self.base_url = 'https://reactrouter.com/en/6.14.1/'
self.initial_paths = %w(start/overview)
self.links = {
home: 'https://reactrouter.com/',
code: 'https://github.com/remix-run/react-router'
}
html_filters.push 'react_router/entries', 'react_router/clean_html'
options[:skip_patterns] = [/upgrading/]
options[:attribution] = <<-HTML
© React Training 2015-2019<br>
© Remix Software 2020-2022<br>
Licensed under the MIT License (MIT).
HTML
def get_latest_version(opts)
get_npm_version('react-router', opts)
end
end
end