mirror of https://github.com/freeCodeCamp/devdocs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
733 B
31 lines
733 B
module Docs
|
|
class Axios < UrlScraper
|
|
self.type = 'simple'
|
|
self.links = {
|
|
home: 'hthttps://axios-http.com/',
|
|
code: 'https://github.com/axios/axios'
|
|
}
|
|
self.release = '1.4.0'
|
|
self.base_url = "https://axios-http.com/docs/"
|
|
self.initial_paths = %w(index intro)
|
|
|
|
html_filters.push 'axios/entries', 'axios/clean_html'
|
|
|
|
# https://github.com/axios/axios-docs/blob/master/LICENSE
|
|
options[:attribution] = <<-HTML
|
|
© 2020-present John Jakob "Jake" Sarjeant<br>
|
|
Licensed under the MIT License.
|
|
HTML
|
|
|
|
def get_latest_version(opts)
|
|
get_latest_github_release('axios', 'axios', opts)
|
|
end
|
|
|
|
private
|
|
|
|
def process_response?(response)
|
|
true
|
|
end
|
|
end
|
|
end
|