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

Showing the changes to lib (2 of 2 files). Show all

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 @@
1module 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
11end
lib/docs/scrapers/cordova.rb+1−0
@@ -8,6 +8,7 @@ module Docs · 7 unmodified lines
8 code: 'https://github.com/apache/cordova'8 code: 'https://github.com/apache/cordova'
9 }9 }
10 10
11 html_filters.replace 'clean_html', 'cordova/clean_html_core'
11 html_filters.push 'cordova/entries', 'cordova/clean_html'12 html_filters.push 'cordova/entries', 'cordova/clean_html'
12 13
13 options[:container] = '.docs'14 options[:container] = '.docs'

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t