Merge pull request #1758 from breunigs/fix-elixir-1.13-title-parsing

Fix all Elixir 1.13 names detected as "Settings"
pull/1763/head
Simon Legner 3 years ago committed by GitHub
commit 9375cb6bbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save