diff --git a/lib/docs/filters/qunit/clean_html.rb b/lib/docs/filters/qunit/clean_html.rb
index eb104b5c..ff4d9ec9 100644
--- a/lib/docs/filters/qunit/clean_html.rb
+++ b/lib/docs/filters/qunit/clean_html.rb
@@ -4,7 +4,7 @@ module Docs
class Qunit
class CleanHtmlFilter < Filter
def call
- @doc = at_css('.content[role="main"]')
+ @doc = at_css('.content[role="main"] > article')
css('.sidebar').remove
css('pre').each do |node|
node['data-language'] = 'javascript'
diff --git a/lib/docs/scrapers/qunit.rb b/lib/docs/scrapers/qunit.rb
index f0d649f5..ff13fbdb 100644
--- a/lib/docs/scrapers/qunit.rb
+++ b/lib/docs/scrapers/qunit.rb
@@ -4,8 +4,8 @@ module Docs
class Qunit < UrlScraper
self.name = 'QUnit'
self.type = 'qunit'
- self.release = '2.19.3'
- self.base_url = 'https://api.qunitjs.com/'
+ self.release = '2.21.0'
+ self.base_url = 'https://qunitjs.com/api/'
self.root_path = '/'
self.links = {
home: 'https://qunitjs.com/',
@@ -18,13 +18,14 @@ module Docs
options[:container] = '.main'
options[:skip_patterns] = [
- /deprecated/,
/^QUnit$/,
/^assert$/,
/^callbacks$/,
/^async$/,
/^config$/,
/^extension$/,
+ /^deprecated$/,
+ /^removed$/,
]
options[:attribution] = <<-HTML