axios.rb 733 B

123456789101112131415161718192021222324252627282930
  1. module Docs
  2. class Axios < UrlScraper
  3. self.type = 'simple'
  4. self.links = {
  5. home: 'hthttps://axios-http.com/',
  6. code: 'https://github.com/axios/axios'
  7. }
  8. self.release = '1.6.5'
  9. self.base_url = "https://axios-http.com/docs/"
  10. self.initial_paths = %w(index intro)
  11. html_filters.push 'axios/entries', 'axios/clean_html'
  12. # https://github.com/axios/axios-docs/blob/master/LICENSE
  13. options[:attribution] = <<-HTML
  14. &copy; 2020-present John Jakob "Jake" Sarjeant<br>
  15. Licensed under the MIT License.
  16. HTML
  17. def get_latest_version(opts)
  18. get_latest_github_release('axios', 'axios', opts)
  19. end
  20. private
  21. def process_response?(response)
  22. true
  23. end
  24. end
  25. end