[devdocsgjs/main: 34/76] Fix all Elixir 1.13 names detected as "Settings"




commit 2123c1924340a3c26b8f3968afa8e36d9648149e
Author: Stefan Breunig <stefan-github yrden de>
Date:   Fri May 27 17:20:00 2022 +0200

    Fix all Elixir 1.13 names detected as "Settings"
    
    A partial fix was already included in the initial patch in #1746,
    but it was only applied to a subset of titles.

 lib/docs/filters/elixir/entries.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/docs/filters/elixir/entries.rb b/lib/docs/filters/elixir/entries.rb
index 182191fd..7f73b54a 100644
--- a/lib/docs/filters/elixir/entries.rb
+++ b/lib/docs/filters/elixir/entries.rb
@@ -3,11 +3,11 @@ module Docs
     class EntriesFilter < Docs::EntriesFilter
       def get_name
         css('h1 .app-vsn').remove
+        name = (at_css('h1 > span') or at_css('h1')).content.strip
 
         if current_url.path.start_with?('/getting-started')
-          (at_css('h1 > span') or at_css('h1')).content.strip.remove(/\.\z/)
+          name.remove(/\.\z/)
         else
-          name = at_css('h1').content.strip
           name = name.split(' ').first unless name.start_with?('mix ') # ecto
           name
         end


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