devdocs/lib/docs/scrapers/moment.rb
2014-10-12 09:33:00 -04:00

20 lines
548 B
Ruby

module Docs
class Moment < UrlScraper
self.name = 'Moment.js'
self.slug = 'moment'
self.type = 'moment'
self.version = '2.8.3'
self.base_url = 'http://momentjs.com/docs/'
html_filters.push 'moment/clean_html', 'moment/entries', 'title'
options[:title] = 'Moment.js'
options[:container] = '.docs-content'
options[:skip_links] = true
options[:attribution] = <<-HTML
&copy; 2011&ndash;2014 Tim Wood, Iskren Chernev, Moment.js contributors<br>
Licensed under the MIT License.
HTML
end
end