mirror of https://github.com/freeCodeCamp/devdocs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
714 B
27 lines
714 B
module Docs
|
|
class ReactRouter < UrlScraper
|
|
self.name = 'React Router'
|
|
self.slug = 'react_router'
|
|
self.type = 'simple'
|
|
self.release = '6.2.1'
|
|
self.base_url = 'https://reactrouterdotcom.fly.dev/docs/en/v6/api'
|
|
|
|
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'
|
|
|
|
options[:attribution] = <<-HTML
|
|
© React Training 2015-2019<br>
|
|
© Remix Software 2020-2021<br>
|
|
Licensed under the MIT License (MIT).
|
|
HTML
|
|
|
|
def get_latest_version(opts)
|
|
get_npm_version('react-router', opts)
|
|
end
|
|
end
|
|
end
|