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.
devdocs/lib/docs/scrapers/react_router.rb

29 lines
746 B

module Docs
class ReactRouter < UrlScraper
self.name = 'React Router'
self.slug = 'react_router'
self.type = 'simple'
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'
options[:skip_patterns] = [/upgrading/]
options[:attribution] = <<-HTML
&copy; React Training 2015-2019<br>
&copy; 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