From faac2369cd580f355ce63b35ec8ac26de73edb26 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Tue, 20 Dec 2022 22:59:39 +0100 Subject: [PATCH] Update QUnit documentation (2.19.3) --- assets/javascripts/templates/pages/about_tmpl.coffee | 5 +++++ lib/docs/filters/qunit/clean_html.rb | 1 + lib/docs/scrapers/qunit.rb | 9 ++++++++- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee b/assets/javascripts/templates/pages/about_tmpl.coffee index 7ca88895..c9f07e19 100644 --- a/assets/javascripts/templates/pages/about_tmpl.coffee +++ b/assets/javascripts/templates/pages/about_tmpl.coffee @@ -745,6 +745,11 @@ credits = [ '2012-2018 The Qt Company Ltd', 'GFDL', 'https://doc.qt.io/qt-5/licensing.html' + ], [ + 'QUnit', + 'OpenJS Foundation and other contributors', + 'MIT', + 'https://raw.githubusercontent.com/qunitjs/qunit/main/LICENSE.txt' ], [ 'R', '1999–2012 R Foundation for Statistical Computing', diff --git a/lib/docs/filters/qunit/clean_html.rb b/lib/docs/filters/qunit/clean_html.rb index c85daaf8..201c30b6 100644 --- a/lib/docs/filters/qunit/clean_html.rb +++ b/lib/docs/filters/qunit/clean_html.rb @@ -4,6 +4,7 @@ module Docs class Qunit class CleanHtmlFilter < Filter def call + @doc = at_css('.content[role="main"]') css('.sidebar').remove doc end diff --git a/lib/docs/scrapers/qunit.rb b/lib/docs/scrapers/qunit.rb index f7cc13e1..f0d649f5 100644 --- a/lib/docs/scrapers/qunit.rb +++ b/lib/docs/scrapers/qunit.rb @@ -27,6 +27,13 @@ module Docs /^extension$/, ] - options[:attribution] = 'Copyright OpenJS Foundation and contributors.' + options[:attribution] = <<-HTML + © OpenJS Foundation and contributors.
+ Licensed under the MIT license. + HTML + + def get_latest_version(opts) + get_npm_version('qunit', opts) + end end end