History

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

Fix Cordova indents with new clean html option

Simon Legner committed 1 year ago

Commit 1da0de92 parents 002eb72 63dd3dc2 files · +12 −0Browse files

Unified · Split

2 files
  1. lib/docs/filters/cordova/clean_html_core.rb +11 −0
  2. lib/docs/scrapers/cordova.rb +1 −0
lib/docs/filters/cordova/clean_html_core.rb+11−0
@@ -0,0 +1,11 @@
1+module Docs
2+ class Cordova
3+ class CleanHtmlCoreFilter < Filter
4+ def call
5+ css('script', 'style', 'link').remove
6+ xpath('descendant::comment()').remove
7+ doc
8+ end
9+ end
10+ end
11+end
lib/docs/scrapers/cordova.rb+1−0
@@ -8,6 +8,7 @@ module Docs · 7 unmodified lines
88 code: 'https://github.com/apache/cordova'
99 }
1010
11+ html_filters.replace 'clean_html', 'cordova/clean_html_core'
1112 html_filters.push 'cordova/entries', 'cordova/clean_html'
1213
1314 options[:container] = '.docs'