- Fix pages with tables where information lacked spaces.
Unified · Split
| @@ -3,10 +3,21 @@ module Docs · 2 unmodified lines | ||
| 3 | 3 | class CleanHtmlFilter < Filter |
| 4 | 4 | def call |
| 5 | 5 | |
| 6 | + if root_page? | |
| 7 | + css('img').remove | |
| 8 | + end | |
| 9 | + | |
| 6 | 10 | css('#navbar-main').remove |
| 7 | 11 | |
| 8 | 12 | css('form').remove |
| 9 | 13 | |
| 14 | + # add ':' to '.classifier' clases | |
| 15 | + css('.classifier').each do |node| | |
| 16 | + text = node.content | |
| 17 | + node.content = ':' + text | |
| 18 | + node.content = node.content.gsub(/::/, ' : ') | |
| 19 | + end | |
| 20 | + | |
| 10 | 21 | # sidebar |
| 11 | 22 | css('ul.nav.bd-sidenav').remove |
| 12 | 23 | |