Cleanup redundant bits

pull/1003/head
Emil Maruszczak 6 years ago
parent 8fdaf8a33c
commit 6c12d53a46

@ -1,4 +1,4 @@
%mkdocs {
._mkdocs {
h2 { @extend %block-heading; }
h3 { @extend %block-label, %label-blue; }
h4 { @extend %block-label; }
@ -9,7 +9,3 @@
p > code, li > code { @extend %label; }
}
._mkdocs {
@extend %mkdocs;
}

@ -4,7 +4,6 @@ module Docs
def call
css('.toclink').each do |node|
node.parent.content = node.content
node.remove
end
css('pre').each do |node|

@ -4,17 +4,11 @@ module Docs
def call
css('hr').remove
css('.badges').each do |node|
node.remove
end
css('.badges').remove
css('pre').each do |node|
node['data-language'] = 'python'
end
css('pre').attr('data-language', 'python')
css('h1').each do |node|
node['style'] = nil
end
css('h1').attr('style', nil)
# Translate source files links to DevDocs links
links = Nokogiri::XML::Node.new('p', doc)
@ -23,7 +17,6 @@ module Docs
css('a.github').each do |node|
span = node.at_css('span')
node.content = span.content
span.remove
node['class'] = '_links-link'
links.add_child(node)
end

Loading…
Cancel
Save