| @@ -4,16 +4,16 @@ module Docs · 3 unmodified lines |
| 4 | 4 | def call |
| 5 | 5 | @doc = at_css('> div[id]') if at_css('> div[id]') |
| 6 | 6 | # Remove the navigation header and footer and the lines underneath and above it |
| 7 | | − at_css('.header + hr').remove |
| 7 | + at_css('.nav-panel + hr').remove |
| 8 | 8 | line_above = at_xpath('//div[@class="header"]/preceding::hr[1]') |
| 9 | 9 | line_above.remove unless line_above.nil? |
| 10 | | − css('.header').remove |
| 10 | + css('.nav-panel').remove |
| 11 | 11 | |
| 12 | 12 | css('.copiable-anchor').remove |
| 13 | 13 | |
| 14 | 14 | # Remove chapter and section numbers from title |
| 15 | 15 | title_node = at_css('h1, h2, h3, h4, h5, h6') |
| 16 | | − title_node.content = title_node.content.gsub(/(\d+\.?)+/, '').strip |
| 16 | + title_node.content = title_node.content.gsub(/(\d+\.?)+/, '').gsub('¶', '').strip |
| 17 | 17 | title_node.name = 'h1' |
| 18 | 18 | |
| 19 | 19 | # Remove the "D. " from names like "D. Concept Index" and "D. Function Index" |
| @@ -52,7 +52,7 @@ module Docs · 32 unmodified lines |
| 52 | 52 | end |
| 53 | 53 | |
| 54 | 54 | # Remove the rows with a horizontal line in them from the index tables |
| 55 | | − css('td[colspan="4"]').remove |
| 55 | + css('td[colspan="3"]').remove |
| 56 | 56 | |
| 57 | 57 | # Remove additional text from menu entry and index entry cells |
| 58 | 58 | css('td[valign=top]').each do |node| |