소스 검색

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