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
207 'http://www.lua.org/license.html'207 'http://www.lua.org/license.html'
208 ], [208 ], [
209 'Marionette.js',209 'Marionette.js',
210 '2014 Muted Solutions, LLC',210 '2015 Muted Solutions, LLC',
211 'MIT',211 'MIT',
212 'http://mutedsolutions.mit-license.org/'212 'http://mutedsolutions.mit-license.org/'
213 ], [213 ], [
assets/stylesheets/pages/_marionette.scss+1−0
@@ -4,4 +4,5 @@ · 3 unmodified lines
4 > h1, > h2 { margin-left: -1rem; }4 > h1, > h2 { margin-left: -1rem; }
5 > h2 { @extend %block-heading; }5 > h2 { @extend %block-heading; }
6 > h3 { @extend %block-label, %label-blue; }6 > h3 { @extend %block-label, %label-blue; }
7 blockquote { @extend %note; }
7}8}
lib/docs/filters/marionette/clean_html.rb+1−0
@@ -8,6 +8,7 @@ module Docs · 7 unmodified lines
8 8
9 def root9 def root
10 at_css('p').remove10 at_css('p').remove
11 at_css('h1').content = 'Backbone.Marionette'
11 end12 end
12 13
13 def other14 def other
lib/docs/scrapers/marionette.rb+5−13
@@ -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] = <<-HTML14 options[:attribution] = <<-HTML
23 &copy; 2014 Muted Solutions, LLC<br>15 &copy; 2015 Muted Solutions, LLC<br>
24 Licensed under the MIT License.16 Licensed under the MIT License.
25 HTML17 HTML
26 end18 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