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.
25 lines
672 B
25 lines
672 B
module Docs
|
|
class Ramda < UrlScraper
|
|
self.type = 'ramda'
|
|
self.release = '0.27.0'
|
|
self.base_url = "https://ramdajs.com/#{release}/docs/"
|
|
self.links = {
|
|
home: 'http://ramdajs.com/',
|
|
code: 'https://github.com/ramda/ramda/'
|
|
}
|
|
|
|
html_filters.push 'ramda/entries', 'ramda/clean_html', 'title'
|
|
|
|
options[:title] = 'Ramda'
|
|
options[:attribution] = <<-HTML
|
|
© 2013–2020 Scott Sauyet and Michael Hurley<br>
|
|
Licensed under the MIT License.
|
|
HTML
|
|
|
|
def get_latest_version(opts)
|
|
doc = fetch_doc('https://ramdajs.com/docs/', opts)
|
|
doc.at_css('.navbar-brand > .version').content[1..-1]
|
|
end
|
|
end
|
|
end
|