react_router.rb 714 B

1234567891011121314151617181920212223242526
  1. module Docs
  2. class ReactRouter < UrlScraper
  3. self.name = 'React Router'
  4. self.slug = 'react_router'
  5. self.type = 'simple'
  6. self.release = '6.2.1'
  7. self.base_url = 'https://reactrouterdotcom.fly.dev/docs/en/v6/api'
  8. self.links = {
  9. home: 'https://reactrouterdotcom.fly.dev/',
  10. code: 'https://github.com/remix-run/react-router'
  11. }
  12. html_filters.push 'react_router/entries', 'react_router/clean_html', 'title'
  13. options[:attribution] = <<-HTML
  14. &copy; React Training 2015-2019<br>
  15. &copy; Remix Software 2020-2021<br>
  16. Licensed under the MIT License (MIT).
  17. HTML
  18. def get_latest_version(opts)
  19. get_npm_version('react-router', opts)
  20. end
  21. end
  22. end