[devdocsgjs/wip/andyholmes/upstream-merge: 194/200] elixir: fix get_name




commit c3bce85947b2c624f08fbb658cd7e0e0f121f6f4
Author: Simon Legner <Simon Legner gmail com>
Date:   Mon May 16 20:28:50 2022 +0200

    elixir: fix get_name

 lib/docs/filters/elixir/entries.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/lib/docs/filters/elixir/entries.rb b/lib/docs/filters/elixir/entries.rb
index 91caa237..182191fd 100644
--- a/lib/docs/filters/elixir/entries.rb
+++ b/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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]