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.
28 lines
685 B
28 lines
685 B
module Docs
|
|
class Marionette < UrlScraper
|
|
self.name = 'Marionette.js'
|
|
self.slug = 'marionette'
|
|
self.type = 'marionette'
|
|
self.version = '2.3.0'
|
|
self.base_url = 'http://marionettejs.com/docs/'
|
|
self.root_path = 'current'
|
|
|
|
html_filters.push 'marionette/clean_html', 'marionette/entries'
|
|
|
|
options[:container] = '#content'
|
|
|
|
options[:skip] = %w(/readme.html)
|
|
options[:skip_patterns] = [/\A\/v\d/]
|
|
|
|
options[:fix_urls] = ->(url) do
|
|
url.sub! %r{marionette([^\/#\?]*)\.md}, 'marionette\1'
|
|
url
|
|
end
|
|
|
|
options[:attribution] = <<-HTML
|
|
© 2014 Muted Solutions, LLC<br>
|
|
Licensed under the MIT License.
|
|
HTML
|
|
end
|
|
end
|