소스 검색

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 년 전
부모
커밋
4d183ef315
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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