Explorar o código

Update Sinon documentation (1.17.3)

Thibaut Courouble %!s(int64=9) %!d(string=hai) anos
pai
achega
78811b9635

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

@@ -427,7 +427,7 @@ credits = [
     'https://raw.githubusercontent.com/sass/sass/stable/MIT-LICENSE'
   ], [
     'Sinon',
-    '2010-2015 Christian Johansen',
+    '2010-2016 Christian Johansen',
     'BSD',
     'https://raw.githubusercontent.com/cjohansen/Sinon.JS/master/LICENSE'
   ], [

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

@@ -20,7 +20,6 @@ app.views.GruntPage =
 app.views.LodashPage =
 app.views.MarionettePage =
 app.views.MochaPage =
-app.views.SinonPage =
 app.views.JavascriptPage
 
 app.views.DojoPage =

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

@@ -21,6 +21,7 @@ app.views.PostgresPage =
 app.views.RamdaPage =
 app.views.ReactPage =
 app.views.RethinkdbPage =
+app.views.SinonPage =
 app.views.SphinxSimplePage =
 app.views.TensorflowPage =
 app.views.TypescriptPage =

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

@@ -11,6 +11,7 @@ module Docs
         # Remove code highlighting
         css('pre').each do |node|
           node.content = node.content
+          node['data-language'] = 'javascript'
         end
 
         doc

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

@@ -2,7 +2,7 @@ module Docs
   class Sinon < UrlScraper
     self.name = 'Sinon'
     self.type = 'sinon'
-    self.release = '1.17.1'
+    self.release = '1.17.3'
     self.base_url = 'http://sinonjs.org/docs/'
     self.links = {
       home: 'http://sinonjs.org/',
@@ -16,7 +16,7 @@ module Docs
     options[:skip_links] = true
 
     options[:attribution] = <<-HTML
-      &copy; 2010&ndash;2015 Christian Johansen<br>
+      &copy; 2010&ndash;2016 Christian Johansen<br>
       Licensed under the BSD License.
     HTML
   end