jest.rb 743 B

12345678910111213141516171819202122232425262728293031323334
  1. module Docs
  2. class Jest < UrlScraper
  3. include MultipleBaseUrls
  4. self.type = 'simple'
  5. self.release = '27.0.4'
  6. self.base_urls = [
  7. 'https://jestjs.io/docs/',
  8. 'https://jestjs.io/docs/expect'
  9. ]
  10. self.root_path = 'getting-started'
  11. self.links = {
  12. home: 'https://jestjs.io/',
  13. code: 'https://github.com/facebook/jest'
  14. }
  15. html_filters.push 'jest/entries', 'jest/clean_html'
  16. options[:skip_patterns] = [
  17. /\d*.x/ # avoid deprecated versions
  18. ]
  19. options[:attribution] = <<-HTML
  20. &copy; 2021 Facebook, Inc.<br>
  21. Licensed under the MIT License.
  22. HTML
  23. def get_latest_version(opts)
  24. doc = get_latest_github_release('facebook', 'jest', opts)
  25. end
  26. end
  27. end