Parcourir la source

Update Marionette.js documentation (2.4.5)

Thibaut Courouble il y a 9 ans
Parent
commit
90ebef1b6c

+ 2 - 2
assets/javascripts/templates/pages/about_tmpl.coffee

@@ -272,9 +272,9 @@ credits = [
     'http://www.lua.org/license.html'
   ], [
     'Marionette.js',
-    '2015 Muted Solutions, LLC',
+    '2016 Muted Solutions, LLC',
     'MIT',
-    'http://mutedsolutions.mit-license.org/'
+    'https://mutedsolutions.mit-license.org/'
   ], [
     'Markdown',
     '2004 John Gruber',

+ 0 - 1
assets/javascripts/views/pages/javascript.coffee

@@ -18,7 +18,6 @@ class app.views.JavascriptWithMarkupCheckPage extends app.views.BasePage
 app.views.ChaiPage =
 app.views.GruntPage =
 app.views.LodashPage =
-app.views.MarionettePage =
 app.views.MochaPage =
 app.views.JavascriptPage
 

+ 1 - 0
assets/javascripts/views/pages/simple.coffee

@@ -10,6 +10,7 @@ app.views.AngularPage =
 app.views.EmberPage =
 app.views.ExpressPage =
 app.views.GoPage =
+app.views.MarionettePage =
 app.views.MeteorPage =
 app.views.ModernizrPage =
 app.views.MomentPage =

+ 1 - 0
lib/docs/filters/marionette/clean_html.rb

@@ -15,6 +15,7 @@ module Docs
         css('#source + h2', '#improve', '#source', '.glyphicon', 'p > br').remove
 
         css('pre > code').each do |node|
+          node.parent['data-language'] = node['class'][/lang-(\w+)/, 1]
           node.before(node.children).remove
         end
 

+ 2 - 2
lib/docs/scrapers/marionette.rb

@@ -3,7 +3,7 @@ module Docs
     self.name = 'Marionette.js'
     self.slug = 'marionette'
     self.type = 'marionette'
-    self.release = '2.4.3'
+    self.release = '2.4.5'
     self.base_url = "http://marionettejs.com/docs/v#{release}/"
     self.root_path = 'index'
     self.links = {
@@ -16,7 +16,7 @@ module Docs
     options[:container] = '.docs__content'
 
     options[:attribution] = <<-HTML
-      &copy; 2015 Muted Solutions, LLC<br>
+      &copy; 2016 Muted Solutions, LLC<br>
       Licensed under the MIT License.
     HTML
   end