瀏覽代碼

Update Mocha documentation (2.5.3)

Thibaut Courouble 9 年之前
父節點
當前提交
33187426d9

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

@@ -312,9 +312,9 @@ credits = [
     'https://github.com/seattlerb/minitest/blob/master/README.rdoc#license'
   ], [
     'Mocha',
-    '2011-2016 TJ Holowaychuk',
-    'MIT',
-    'https://raw.githubusercontent.com/mochajs/mocha/master/LICENSE'
+    'Mocha contributors',
+    'CC BY',
+    'https://creativecommons.org/licenses/by/4.0/'
   ], [
     'Modernizr',
     '2009-2016 The Modernizr team',

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

@@ -16,7 +16,6 @@ class app.views.JavascriptWithMarkupCheckPage extends app.views.BasePage
     return
 
 app.views.GruntPage =
-app.views.MochaPage =
 app.views.JavascriptPage
 
 app.views.DojoPage =

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

@@ -21,6 +21,7 @@ app.views.LovePage =
 app.views.MarionettePage =
 app.views.MdnPage =
 app.views.MeteorPage =
+app.views.MochaPage =
 app.views.ModernizrPage =
 app.views.MomentPage =
 app.views.MongoosePage =

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

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

+ 3 - 4
lib/docs/scrapers/mocha.rb

@@ -1,8 +1,7 @@
 module Docs
   class Mocha < UrlScraper
-    self.name = 'mocha'
     self.type = 'mocha'
-    self.release = '2.4.5'
+    self.release = '2.5.3'
     self.base_url = 'https://mochajs.org/'
     self.links = {
       home: 'https://mochajs.org/',
@@ -16,8 +15,8 @@ module Docs
     options[:skip_links] = true
 
     options[:attribution] = <<-HTML
-      &copy; 2011&ndash;2016 TJ Holowaychuk<br>
-      Licensed under the MIT License.
+      &copy; Mocha contributors<br>
+      Licensed under the Creative Commons Attribution 4.0 International License.
     HTML
   end
 end