History

elixir: fix entry names

h1 contains a hidden span.app-vsn containing the elixir version. Drop this element before extracting the content.

Simon Legner committed 7 years ago

Commit 4d183ef1 parent d39f0dc1 file · +1 −0Browse files

Unified · Split

lib/docs/filters/elixir/entries.rb+1−0
@@ -2,6 +2,7 @@ module Docs · 1 unmodified line
2 class Elixir2 class Elixir
3 class EntriesFilter < Docs::EntriesFilter3 class EntriesFilter < Docs::EntriesFilter
4 def get_name4 def get_name
5 at_css('h1 .app-vsn').remove
5 if current_url.path.start_with?('/getting-started')6 if current_url.path.start_with?('/getting-started')
6 at_css('h1').content.strip.remove(/\.\z/)7 at_css('h1').content.strip.remove(/\.\z/)
7 else8 else