| @@ -3,24 +3,16 @@ module Docs · 2 unmodified lines |
| 3 | self.name = 'Marionette.js' | 3 | self.name = 'Marionette.js' |
| 4 | self.slug = 'marionette' | 4 | self.slug = 'marionette' |
| 5 | self.type = 'marionette' | 5 | self.type = 'marionette' |
| 6 | self.version = '2.3.0' | 6 | self.version = '2.4.1' |
| 7 | self.base_url = 'http://marionettejs.com/docs/' | 7 | self.base_url = "http://marionettejs.com/docs/v#{version}/" |
| 8 | self.root_path = 'current' | 8 | self.root_path = 'index' |
| 9 | | 9 | |
| 10 | html_filters.push 'marionette/clean_html', 'marionette/entries' | 10 | html_filters.push 'marionette/clean_html', 'marionette/entries' |
| 11 | | 11 | |
| 12 | options[:container] = '#content' | 12 | options[:container] = '.docs__content' |
| 13 | | | |
| 14 | options[:skip] = %w(/readme.html) | | |
| 15 | options[:skip_patterns] = [/\A\/v\d/] | | |
| 16 | | | |
| 17 | options[:fix_urls] = ->(url) do | | |
| 18 | url.sub! %r{marionette([^\/#\?]*)\.md}, 'marionette\1' | | |
| 19 | url | | |
| 20 | end | | |
| 21 | | 13 | |
| 22 | options[:attribution] = <<-HTML | 14 | options[:attribution] = <<-HTML |
| 23 | © 2014 Muted Solutions, LLC<br> | 15 | © 2015 Muted Solutions, LLC<br> |
| 24 | Licensed under the MIT License. | 16 | Licensed under the MIT License. |
| 25 | HTML | 17 | HTML |
| 26 | end | 18 | end |