requests.rb 685 B

12345678910111213141516171819202122232425
  1. module Docs
  2. class Requests < UrlScraper
  3. self.type = 'sphinx'
  4. self.root_path = 'index.html'
  5. self.links = {
  6. home: 'https://requests.readthedocs.io/',
  7. code: 'https://github.com/psf/requests'
  8. }
  9. self.release = '2.28.1'
  10. self.base_url = "https://requests.readthedocs.io/en/latest/api/"
  11. html_filters.push 'requests/entries', 'sphinx/clean_html'
  12. options[:container] = '.body > section'
  13. options[:attribution] = <<-HTML
  14. &copy; 2011-2022 Kenneth Reitz and other contributors<br>
  15. Licensed under the Apache license.
  16. HTML
  17. def get_latest_version(opts)
  18. get_latest_github_release('psf', 'requests', opts)
  19. end
  20. end
  21. end