mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Merge pull request #2287 from Krinkle/update-qunit
Update QUnit documentation (2.21.0)
This commit is contained in:
commit
f4609a1689
2 changed files with 5 additions and 4 deletions
|
@ -4,7 +4,7 @@ module Docs
|
||||||
class Qunit
|
class Qunit
|
||||||
class CleanHtmlFilter < Filter
|
class CleanHtmlFilter < Filter
|
||||||
def call
|
def call
|
||||||
@doc = at_css('.content[role="main"]')
|
@doc = at_css('.content[role="main"] > article')
|
||||||
css('.sidebar').remove
|
css('.sidebar').remove
|
||||||
css('pre').each do |node|
|
css('pre').each do |node|
|
||||||
node['data-language'] = 'javascript'
|
node['data-language'] = 'javascript'
|
||||||
|
|
|
@ -4,8 +4,8 @@ module Docs
|
||||||
class Qunit < UrlScraper
|
class Qunit < UrlScraper
|
||||||
self.name = 'QUnit'
|
self.name = 'QUnit'
|
||||||
self.type = 'qunit'
|
self.type = 'qunit'
|
||||||
self.release = '2.19.3'
|
self.release = '2.21.0'
|
||||||
self.base_url = 'https://api.qunitjs.com/'
|
self.base_url = 'https://qunitjs.com/api/'
|
||||||
self.root_path = '/'
|
self.root_path = '/'
|
||||||
self.links = {
|
self.links = {
|
||||||
home: 'https://qunitjs.com/',
|
home: 'https://qunitjs.com/',
|
||||||
|
@ -18,13 +18,14 @@ module Docs
|
||||||
|
|
||||||
options[:container] = '.main'
|
options[:container] = '.main'
|
||||||
options[:skip_patterns] = [
|
options[:skip_patterns] = [
|
||||||
/deprecated/,
|
|
||||||
/^QUnit$/,
|
/^QUnit$/,
|
||||||
/^assert$/,
|
/^assert$/,
|
||||||
/^callbacks$/,
|
/^callbacks$/,
|
||||||
/^async$/,
|
/^async$/,
|
||||||
/^config$/,
|
/^config$/,
|
||||||
/^extension$/,
|
/^extension$/,
|
||||||
|
/^deprecated$/,
|
||||||
|
/^removed$/,
|
||||||
]
|
]
|
||||||
|
|
||||||
options[:attribution] = <<-HTML
|
options[:attribution] = <<-HTML
|
||||||
|
|
Loading…
Reference in a new issue