mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-18 10:07:11 +01:00
20 lines
599 B
Ruby
20 lines
599 B
Ruby
module Docs
|
|
class Underscore < UrlScraper
|
|
self.name = 'Underscore.js'
|
|
self.slug = 'underscore'
|
|
self.type = 'underscore'
|
|
self.version = '1.7.0'
|
|
self.base_url = 'http://underscorejs.org'
|
|
|
|
html_filters.push 'underscore/clean_html', 'underscore/entries', 'title'
|
|
|
|
options[:title] = 'Underscore.js'
|
|
options[:container] = '#documentation'
|
|
options[:skip_links] = true
|
|
|
|
options[:attribution] = <<-HTML
|
|
© 2009–2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors<br>
|
|
Licensed under the MIT License.
|
|
HTML
|
|
end
|
|
end
|