We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 002eb72 + 63dd3dc commit 1da0de9Copy full SHA for 1da0de9
lib/docs/filters/cordova/clean_html_core.rb
@@ -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
10
11
+end
lib/docs/scrapers/cordova.rb
@@ -8,6 +8,7 @@ class Cordova < UrlScraper
code: 'https://github.com/apache/cordova'
}
+ html_filters.replace 'clean_html', 'cordova/clean_html_core'
12
html_filters.push 'cordova/entries', 'cordova/clean_html'
13
14
options[:container] = '.docs'
0 commit comments