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
22 class Elixir
33 class EntriesFilter < Docs::EntriesFilter
44 def get_name
5+ at_css('h1 .app-vsn').remove
56 if current_url.path.start_with?('/getting-started')
67 at_css('h1').content.strip.remove(/\.\z/)
78 else