Fixed two Python 3.7 types

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

@ -22,6 +22,7 @@ module Docs
end end
end end
unless @levelRegexp.nil?
css('h2', 'h3', 'h4').each do |node| css('h2', 'h3', 'h4').each do |node|
node.inner_html = node.inner_html.remove @levelRegexp node.inner_html = node.inner_html.remove @levelRegexp
end end
@ -29,3 +30,4 @@ module Docs
end end
end end
end end
end

@ -2,9 +2,11 @@ module Docs
class Python class Python
class EntriesV3Filter < Docs::EntriesFilter class EntriesV3Filter < Docs::EntriesFilter
REPLACE_TYPES = { REPLACE_TYPES = {
'contextvars — Context Variables' => 'Context Variables',
'Cryptographic' => 'Cryptography', 'Cryptographic' => 'Cryptography',
'Custom Interpreters' => 'Interpreters', 'Custom Interpreters' => 'Interpreters',
'Data Compression & Archiving' => 'Data Compression', 'Data Compression & Archiving' => 'Data Compression',
'email — An email & MIME handling package' => 'Email',
'Generic Operating System' => 'Operating System', 'Generic Operating System' => 'Operating System',
'Graphical User Interfaces with Tk' => 'Tk', 'Graphical User Interfaces with Tk' => 'Tk',
'Internet Data Handling' => 'Internet Data', 'Internet Data Handling' => 'Internet Data',

Loading…
Cancel
Save