Fixed two Python 3.7 types

pull/885/merge
Jasper van Merle 6 years ago committed by Thibaut Courouble
parent ad7e1bdc4b
commit 31efb9d0f7

@ -22,8 +22,10 @@ module Docs
end end
end end
css('h2', 'h3', 'h4').each do |node| unless @levelRegexp.nil?
node.inner_html = node.inner_html.remove @levelRegexp css('h2', 'h3', 'h4').each do |node|
node.inner_html = node.inner_html.remove @levelRegexp
end
end end
end end
end end

@ -2,16 +2,18 @@ module Docs
class Python class Python
class EntriesV3Filter < Docs::EntriesFilter class EntriesV3Filter < Docs::EntriesFilter
REPLACE_TYPES = { REPLACE_TYPES = {
'Cryptographic' => 'Cryptography', 'contextvars — Context Variables' => 'Context Variables',
'Custom Interpreters' => 'Interpreters', 'Cryptographic' => 'Cryptography',
'Data Compression & Archiving' => 'Data Compression', 'Custom Interpreters' => 'Interpreters',
'Generic Operating System' => 'Operating System', 'Data Compression & Archiving' => 'Data Compression',
'Graphical User Interfaces with Tk' => 'Tk', 'email — An email & MIME handling package' => 'Email',
'Internet Data Handling' => 'Internet Data', 'Generic Operating System' => 'Operating System',
'Internet Protocols & Support' => 'Internet', 'Graphical User Interfaces with Tk' => 'Tk',
'Interprocess Communication & Networking' => 'Networking', 'Internet Data Handling' => 'Internet Data',
'Program Frameworks' => 'Frameworks', 'Internet Protocols & Support' => 'Internet',
'Structured Markup Processing Tools' => 'Structured Markup' } 'Interprocess Communication & Networking' => 'Networking',
'Program Frameworks' => 'Frameworks',
'Structured Markup Processing Tools' => 'Structured Markup' }
def get_name def get_name
name = at_css('h1').content name = at_css('h1').content

Loading…
Cancel
Save