marionette.rb 869 B

1234567891011121314151617181920212223242526272829303132333435
  1. module Docs
  2. class Marionette < UrlScraper
  3. self.name = 'Marionette.js'
  4. self.slug = 'marionette'
  5. self.type = 'marionette'
  6. self.root_path = 'index'
  7. self.links = {
  8. home: 'https://marionettejs.com/',
  9. code: 'https://github.com/marionettejs/backbone.marionette'
  10. }
  11. html_filters.push 'marionette/clean_html'
  12. options[:container] = '.docs__content'
  13. options[:attribution] = <<-HTML
  14. &copy; 2016 Muted Solutions, LLC<br>
  15. Licensed under the MIT License.
  16. HTML
  17. version '3' do
  18. self.release = '3.1.0'
  19. self.base_url = "https://marionettejs.com/docs/v#{release}/"
  20. html_filters.push 'marionette/entries_v3'
  21. end
  22. version '2' do
  23. self.release = '2.4.7'
  24. self.base_url = "https://marionettejs.com/docs/v#{release}/"
  25. html_filters.push 'marionette/entries_v2'
  26. end
  27. end
  28. end