axios.rb 701 B

1234567891011121314151617181920212223242526
  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 = '0.27.2'
  9. self.base_url = "https://axios-http.com/docs/"
  10. self.initial_paths = %w(intro)
  11. html_filters.push 'axios/entries', 'axios/clean_html'
  12. options[:container] = 'main > .body'
  13. # https://github.com/axios/axios-docs/blob/master/LICENSE
  14. options[:attribution] = <<-HTML
  15. &copy; 2020-present John Jakob "Jake" Sarjeant<br>
  16. Licensed under the MIT License.
  17. HTML
  18. def get_latest_version(opts)
  19. get_latest_github_release('axios', 'axios', opts)
  20. end
  21. end
  22. end