Merge pull request #2341 from thewheat/fix-cordova-indents

Fix Cordova indents with new clean html option
pull/2334/merge
Simon Legner 2 months ago committed by GitHub
commit 1da0de920a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,11 @@
module Docs
class Cordova
class CleanHtmlCoreFilter < Filter
def call
css('script', 'style', 'link').remove
xpath('descendant::comment()').remove
doc
end
end
end
end

@ -8,6 +8,7 @@ module Docs
code: 'https://github.com/apache/cordova'
}
html_filters.replace 'clean_html', 'cordova/clean_html_core'
html_filters.push 'cordova/entries', 'cordova/clean_html'
options[:container] = '.docs'

Loading…
Cancel
Save