numpy: filters

pull/1682/head
Simon Legner 3 years ago
parent 9b167745f3
commit 8a9e2ea32e

@ -2,7 +2,8 @@ module Docs
class Numpy
class CleanHtmlFilter < Filter
def call
at_css('#spc-section-body, main > div')
css('.sphinx-bs.container.pb-4.docutils').remove if root_page?
at_css('main > div > section', '#spc-section-body, main > div')
end
end
end

@ -19,7 +19,7 @@ module Docs
return 'Development'
end
li_a = css('nav li.active > a')
return li_a.last.content if li_a
return li_a.last.content if li_a && li_a.last
end
nav_items = css('.nav.nav-pills.pull-left > li')

Loading…
Cancel
Save