diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee b/assets/javascripts/templates/pages/about_tmpl.coffee index c5d7ae5e..30b5027b 100644 --- a/assets/javascripts/templates/pages/about_tmpl.coffee +++ b/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', diff --git a/assets/javascripts/views/pages/javascript.coffee b/assets/javascripts/views/pages/javascript.coffee index 114bbe24..2f5a0fe3 100644 --- a/assets/javascripts/views/pages/javascript.coffee +++ b/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 = diff --git a/assets/javascripts/views/pages/simple.coffee b/assets/javascripts/views/pages/simple.coffee index 6bb21226..5f5b11de 100644 --- a/assets/javascripts/views/pages/simple.coffee +++ b/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 = diff --git a/lib/docs/filters/mocha/clean_html.rb b/lib/docs/filters/mocha/clean_html.rb index 7532cf53..8946aa30 100644 --- a/lib/docs/filters/mocha/clean_html.rb +++ b/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 diff --git a/lib/docs/scrapers/mocha.rb b/lib/docs/scrapers/mocha.rb index 74c35c13..a9a2c891 100644 --- a/lib/docs/scrapers/mocha.rb +++ b/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 - © 2011–2016 TJ Holowaychuk
- Licensed under the MIT License. + © Mocha contributors
+ Licensed under the Creative Commons Attribution 4.0 International License. HTML end end