qunit: remove wrapping <article>

pull/2287/head
Simon Legner 6 months ago
parent a2f8678648
commit 8a2e4761c8

@ -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…
Cancel
Save