marionette.rb 685 B

123456789101112131415161718192021222324252627
  1. module Docs
  2. class Marionette < UrlScraper
  3. self.name = 'Marionette.js'
  4. self.slug = 'marionette'
  5. self.type = 'marionette'
  6. self.version = '2.2.2'
  7. self.base_url = 'http://marionettejs.com/docs/'
  8. self.root_path = 'current'
  9. html_filters.push 'marionette/clean_html', 'marionette/entries'
  10. options[:container] = '#content'
  11. options[:skip] = %w(/readme.html)
  12. options[:skip_patterns] = [/\A\/v\d/]
  13. options[:fix_urls] = ->(url) do
  14. url.sub! %r{marionette([^\/#\?]*)\.md}, 'marionette\1'
  15. url
  16. end
  17. options[:attribution] = <<-HTML
  18. &copy; 2014 Muted Solutions, LLC<br>
  19. Licensed under the MIT License.
  20. HTML
  21. end
  22. end