|
|
@ -2,6 +2,8 @@ module Docs
|
|
|
|
class Elixir
|
|
|
|
class Elixir
|
|
|
|
class EntriesFilter < Docs::EntriesFilter
|
|
|
|
class EntriesFilter < Docs::EntriesFilter
|
|
|
|
def get_name
|
|
|
|
def get_name
|
|
|
|
|
|
|
|
css('h1 .app-vsn').remove
|
|
|
|
|
|
|
|
|
|
|
|
if current_url.path.start_with?('/getting-started')
|
|
|
|
if current_url.path.start_with?('/getting-started')
|
|
|
|
at_css('h1').content.strip.remove(/\.\z/)
|
|
|
|
at_css('h1').content.strip.remove(/\.\z/)
|
|
|
|
else
|
|
|
|
else
|
|
|
@ -29,6 +31,8 @@ module Docs
|
|
|
|
else
|
|
|
|
else
|
|
|
|
if name.start_with?('Phoenix')
|
|
|
|
if name.start_with?('Phoenix')
|
|
|
|
name.split('.')[0..2].join('.')
|
|
|
|
name.split('.')[0..2].join('.')
|
|
|
|
|
|
|
|
elsif name.start_with?('mix ')
|
|
|
|
|
|
|
|
'Mix Tasks'
|
|
|
|
else
|
|
|
|
else
|
|
|
|
name.split('.').first
|
|
|
|
name.split('.').first
|
|
|
|
end
|
|
|
|
end
|
|
|
|