瀏覽代碼

Update QUnit documentation (2.19.3)

Simon Legner 3 年之前
父節點
當前提交
1d0ffffd43
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      lib/docs/filters/qunit/clean_html.rb

+ 4 - 0
lib/docs/filters/qunit/clean_html.rb

@@ -6,6 +6,10 @@ module Docs
       def call
         @doc = at_css('.content[role="main"]')
         css('.sidebar').remove
+        css('pre').each do |node|
+          node['data-language'] = 'javascript'
+          node.content = node.content
+        end
         doc
       end
     end