Browse Source

elixir: fix entry names

h1 contains a hidden span.app-vsn containing the elixir version.
Drop this element before extracting the content.
Simon Legner 6 years ago
parent
commit
4d183ef315
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lib/docs/filters/elixir/entries.rb

+ 1 - 0
lib/docs/filters/elixir/entries.rb

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