mirror of https://github.com/freeCodeCamp/devdocs
parent
4468f65dd8
commit
bca4178d6a
@ -0,0 +1,15 @@
|
|||||||
|
module Docs
|
||||||
|
class ReactNative
|
||||||
|
class CleanHtmlFilter < Filter
|
||||||
|
def call
|
||||||
|
if root_page?
|
||||||
|
css('#unsupported + div + center', '#unsupported + div', '#unsupported', '.toggler', 'center > img').remove
|
||||||
|
end
|
||||||
|
|
||||||
|
css('center > .button', 'p:contains("short survey")').remove
|
||||||
|
|
||||||
|
doc
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in new issue