History

Update QUnit documentation (2.19.3)

Simon Legner committed 3 years ago

Commit faac2361 parent 85bbd1c3 files · +14 −1Browse files

Unified · Split

3 files
  1. assets/javascripts/templates/pages/about_tmpl.coffee +5 −0
  2. lib/docs/filters/qunit/clean_html.rb +1 −0
  3. lib/docs/scrapers/qunit.rb +8 −1
assets/javascripts/templates/pages/about_tmpl.coffee+5−0
@@ -745,6 +745,11 @@ credits = [ · 744 unmodified lines
745745 '2012-2018 The Qt Company Ltd',
746746 'GFDL',
747747 'https://doc.qt.io/qt-5/licensing.html'
748+ ], [
749+ 'QUnit',
750+ 'OpenJS Foundation and other contributors',
751+ 'MIT',
752+ 'https://raw.githubusercontent.com/qunitjs/qunit/main/LICENSE.txt'
748753 ], [
749754 'R',
750755 '1999–2012 R Foundation for Statistical Computing',
lib/docs/filters/qunit/clean_html.rb+1−0
@@ -4,6 +4,7 @@ module Docs · 3 unmodified lines
44 class Qunit
55 class CleanHtmlFilter < Filter
66 def call
7+ @doc = at_css('.content[role="main"]')
78 css('.sidebar').remove
89 doc
910 end
lib/docs/scrapers/qunit.rb+8−1
@@ -27,6 +27,13 @@ module Docs · 26 unmodified lines
2727 /^extension$/,
2828 ]
2929
30− options[:attribution] = 'Copyright OpenJS Foundation and contributors.'
30+ options[:attribution] = <<-HTML
31+ &copy; OpenJS Foundation and contributors.<br>
32+ Licensed under the MIT license.
33+ HTML
34+
35+ def get_latest_version(opts)
36+ get_npm_version('qunit', opts)
37+ end
3138 end
3239 end