|
|
@ -16,14 +16,16 @@ module Docs
|
|
|
|
# Remove horizontal lines
|
|
|
|
# Remove horizontal lines
|
|
|
|
css('hr').remove
|
|
|
|
css('hr').remove
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Remove acronym tags but keep the content
|
|
|
|
|
|
|
|
css('acronym').each {|node| node.name = 'span'}
|
|
|
|
|
|
|
|
|
|
|
|
# Remove everything after Appendix B
|
|
|
|
# Remove everything after Appendix B
|
|
|
|
# This includes the license text, the document changelog, the compiler changelog and the footnote
|
|
|
|
# This includes the license text, the document changelog, the compiler changelog and the footnote
|
|
|
|
start_element = at_css('a[name="Appendix-C-_002d-GNU-Free-Documentation-License"]').previous_element
|
|
|
|
current_element = at_css('a[name="Appendix-C-_002d-GNU-Free-Documentation-License"]').previous
|
|
|
|
next_element = start_element.next_element
|
|
|
|
until current_element.nil?
|
|
|
|
until start_element.nil?
|
|
|
|
next_element = current_element.next
|
|
|
|
start_element.remove
|
|
|
|
current_element.remove
|
|
|
|
start_element = next_element
|
|
|
|
current_element = next_element
|
|
|
|
next_element = start_element.nil? ? nil : start_element.next_element
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
# Make headers bigger
|
|
|
|
# Make headers bigger
|
|
|
|