History

Update Mocha documentation (2.5.3)

Thibaut Courouble committed 10 years ago

Commit 33187421 parent ebf8ecf5 files · +8 −8Browse files

Unified · Split

5 files
  1. assets/javascripts/templates/pages/about_tmpl.coffee +3 −3
  2. assets/javascripts/views/pages/javascript.coffee +0 −1
  3. assets/javascripts/views/pages/simple.coffee +1 −0
  4. lib/docs/filters/mocha/clean_html.rb +1 −0
  5. lib/docs/scrapers/mocha.rb +3 −4
assets/javascripts/templates/pages/about_tmpl.coffee+3−3
@@ -312,9 +312,9 @@ credits = [ · 311 unmodified lines
312312 'https://github.com/seattlerb/minitest/blob/master/README.rdoc#license'
313313 ], [
314314 'Mocha',
315− '2011-2016 TJ Holowaychuk',
316− 'MIT',
317− 'https://raw.githubusercontent.com/mochajs/mocha/master/LICENSE'
315+ 'Mocha contributors',
316+ 'CC BY',
317+ 'https://creativecommons.org/licenses/by/4.0/'
318318 ], [
319319 'Modernizr',
320320 '2009-2016 The Modernizr team',
assets/javascripts/views/pages/javascript.coffee+0−1
@@ -16,7 +16,6 @@ class app.views.JavascriptWithMarkupCheckPage extends app.views.BasePage · 15 unmodified lines
1616 return
1717
1818 app.views.GruntPage =
19−app.views.MochaPage =
2019 app.views.JavascriptPage
2120
2221 app.views.DojoPage =
assets/javascripts/views/pages/simple.coffee+1−0
@@ -21,6 +21,7 @@ app.views.LovePage = · 20 unmodified lines
2121 app.views.MarionettePage =
2222 app.views.MdnPage =
2323 app.views.MeteorPage =
24+app.views.MochaPage =
2425 app.views.ModernizrPage =
2526 app.views.MomentPage =
2627 app.views.MongoosePage =
lib/docs/filters/mocha/clean_html.rb+1−0
@@ -6,6 +6,7 @@ module Docs · 5 unmodified lines
66
77 css('pre').each do |node|
88 node.content = node.content
9+ node['data-language'] = 'javascript'
910 end
1011
1112 doc
lib/docs/scrapers/mocha.rb+3−4
@@ -1,8 +1,7 @@
11 module Docs
22 class Mocha < UrlScraper
3− self.name = 'mocha'
43 self.type = 'mocha'
5− self.release = '2.4.5'
4+ self.release = '2.5.3'
65 self.base_url = 'https://mochajs.org/'
76 self.links = {
87 home: 'https://mochajs.org/',
@@ -16,8 +15,8 @@ module Docs · 7 unmodified lines
1615 options[:skip_links] = true
1716
1817 options[:attribution] = <<-HTML
19− &copy; 2011&ndash;2016 TJ Holowaychuk<br>
20− Licensed under the MIT License.
18+ &copy; Mocha contributors<br>
19+ Licensed under the Creative Commons Attribution 4.0 International License.
2120 HTML
2221 end
2322 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