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.
39 lines
959 B
39 lines
959 B
module Docs
|
|
class Coffeescript < UrlScraper
|
|
self.name = 'CoffeeScript'
|
|
self.type = 'coffeescript'
|
|
self.links = {
|
|
home: 'http://coffeescript.org',
|
|
code: 'https://github.com/jashkenas/coffeescript'
|
|
}
|
|
|
|
options[:title] = 'CoffeeScript'
|
|
options[:skip_links] = true
|
|
|
|
options[:attribution] = <<-HTML
|
|
© 2009–2018 Jeremy Ashkenas<br>
|
|
Licensed under the MIT License.
|
|
HTML
|
|
|
|
version '2' do
|
|
self.release = '2.3.0'
|
|
self.base_url = 'http://coffeescript.org/'
|
|
|
|
html_filters.push 'coffeescript/entries', 'coffeescript/clean_html', 'title'
|
|
end
|
|
|
|
version '1' do
|
|
self.release = '1.12.6'
|
|
self.base_url = 'http://coffeescript.org/v1/'
|
|
|
|
html_filters.push 'coffeescript/clean_html_v1', 'coffeescript/entries_v1', 'title'
|
|
|
|
options[:container] = '.container'
|
|
end
|
|
|
|
def get_latest_version(opts)
|
|
get_npm_version('coffeescript', opts)
|
|
end
|
|
end
|
|
end
|