mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
qunit: remove wrapping <article>
This commit is contained in:
parent
a2f8678648
commit
8a2e4761c8
1 changed files with 1 additions and 1 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'
|
||||||
|
|
Loading…
Reference in a new issue