[devdocsgjs/main: 858/1867] elixir: fix entry names




commit 4d183ef3153efdebfe448359a218eb73e385fd3c
Author: Simon Legner <Simon Legner gmail com>
Date:   Wed Aug 21 14:44:34 2019 +0200

    elixir: fix entry names
    
    h1 contains a hidden span.app-vsn containing the elixir version.
    Drop this element before extracting the content.

 lib/docs/filters/elixir/entries.rb | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/lib/docs/filters/elixir/entries.rb b/lib/docs/filters/elixir/entries.rb
index fd91c6bf..4b518de2 100644
--- a/lib/docs/filters/elixir/entries.rb
+++ b/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


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