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.
devdocs/lib/docs/scrapers/coffeescript.rb

35 lines
873 B

11 years ago
module Docs
class Coffeescript < UrlScraper
self.name = 'CoffeeScript'
self.type = 'coffeescript'
self.links = {
home: 'http://coffeescript.org',
code: 'https://github.com/jashkenas/coffeescript'
}
11 years ago
options[:title] = 'CoffeeScript'
options[:skip_links] = true
11 years ago
options[:attribution] = <<-HTML
&copy; 2009&ndash;2017 Jeremy Ashkenas<br>
11 years ago
Licensed under the MIT License.
HTML
version '2' do
self.release = '2.0.1'
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
11 years ago
end
end