History

Update Marionette documentation (2.4.1)

Thibaut committed 11 years ago

Commit 2bbb35b1 parent 57a94bf4 files · +8 −14Browse files

Unified · Split

4 files
  1. assets/javascripts/templates/pages/about_tmpl.coffee +1 −1
  2. assets/stylesheets/pages/_marionette.scss +1 −0
  3. lib/docs/filters/marionette/clean_html.rb +1 −0
  4. lib/docs/scrapers/marionette.rb +5 −13
assets/javascripts/templates/pages/about_tmpl.coffee+1−1
@@ -207,7 +207,7 @@ credits = [ · 206 unmodified lines
207207 'http://www.lua.org/license.html'
208208 ], [
209209 'Marionette.js',
210− '2014 Muted Solutions, LLC',
210+ '2015 Muted Solutions, LLC',
211211 'MIT',
212212 'http://mutedsolutions.mit-license.org/'
213213 ], [
assets/stylesheets/pages/_marionette.scss+1−0
@@ -4,4 +4,5 @@ · 3 unmodified lines
44 > h1, > h2 { margin-left: -1rem; }
55 > h2 { @extend %block-heading; }
66 > h3 { @extend %block-label, %label-blue; }
7+ blockquote { @extend %note; }
78 }
lib/docs/filters/marionette/clean_html.rb+1−0
@@ -8,6 +8,7 @@ module Docs · 7 unmodified lines
88
99 def root
1010 at_css('p').remove
11+ at_css('h1').content = 'Backbone.Marionette'
1112 end
1213
1314 def other
lib/docs/scrapers/marionette.rb+5−13
@@ -3,24 +3,16 @@ module Docs · 2 unmodified lines
33 self.name = 'Marionette.js'
44 self.slug = 'marionette'
55 self.type = 'marionette'
6− self.version = '2.3.0'
7− self.base_url = 'http://marionettejs.com/docs/'
8− self.root_path = 'current'
6+ self.version = '2.4.1'
7+ self.base_url = "http://marionettejs.com/docs/v#{version}/"
8+ self.root_path = 'index'
99
1010 html_filters.push 'marionette/clean_html', 'marionette/entries'
1111
12− options[:container] = '#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
12+ options[:container] = '.docs__content'
2113
2214 options[:attribution] = <<-HTML
23− &copy; 2014 Muted Solutions, LLC<br>
15+ &copy; 2015 Muted Solutions, LLC<br>
2416 Licensed under the MIT License.
2517 HTML
2618 end

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t