Sfoglia il codice sorgente

Update QUnit documentation (2.19.3)

Simon Legner 3 anni fa
parent
commit
faac2369cd

+ 5 - 0
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',

+ 1 - 0
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

+ 8 - 1
lib/docs/scrapers/qunit.rb

@@ -27,6 +27,13 @@ module Docs
       /^extension$/,
     ]
 
-    options[:attribution] = 'Copyright OpenJS Foundation and contributors.'
+    options[:attribution] = <<-HTML
+      &copy; OpenJS Foundation and contributors.<br>
+      Licensed under the MIT license.
+    HTML
+
+    def get_latest_version(opts)
+      get_npm_version('qunit', opts)
+    end
   end
 end