Browse Source

elixir: fix get_name

Simon Legner 3 years ago
parent
commit
c3bce85947
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/docs/filters/elixir/entries.rb

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

@@ -5,7 +5,7 @@ module Docs
         css('h1 .app-vsn').remove
 
         if current_url.path.start_with?('/getting-started')
-          at_css('h1').content.strip.remove(/\.\z/)
+          (at_css('h1 > span') or at_css('h1')).content.strip.remove(/\.\z/)
         else
           name = at_css('h1').content.strip
           name = name.split(' ').first unless name.start_with?('mix ') # ecto