Przeglądaj źródła

Update Underscore.js documentation (1.8.3)

Thibaut Courouble 9 lat temu
rodzic
commit
5391e30939
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      lib/docs/filters/underscore/clean_html.rb

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

@@ -5,6 +5,10 @@ module Docs
         # Remove Links, Changelog
         css('#links ~ *', '#links').remove
 
+        css('pre').each do |node|
+          node['data-language'] = 'javascript'
+        end
+
         doc
       end
     end