elixir: fix entry names

h1 contains a hidden span.app-vsn containing the elixir version.
Drop this element before extracting the content.
pull/1067/head
Simon Legner 6 years ago
parent d39f0dcd1c
commit 4d183ef315

@ -2,6 +2,7 @@ module Docs
class Elixir class Elixir
class EntriesFilter < Docs::EntriesFilter class EntriesFilter < Docs::EntriesFilter
def get_name def get_name
at_css('h1 .app-vsn').remove
if current_url.path.start_with?('/getting-started') if current_url.path.start_with?('/getting-started')
at_css('h1').content.strip.remove(/\.\z/) at_css('h1').content.strip.remove(/\.\z/)
else else

Loading…
Cancel
Save