History

elixir: fix NoMethodError and properly categorize Mix tasks

Jasper van Merle committed 7 years ago

Commit f9437b21 parent 4d183ef1 file · +4 −1Browse files

Showing the changes to lib (1 of 1 file). Show all

Unified · Split

lib/docs/filters/elixir/entries.rb+4−1
@@ -2,7 +2,8 @@ module Docs · 1 unmodified line
22 class Elixir
33 class EntriesFilter < Docs::EntriesFilter
44 def get_name
5− at_css('h1 .app-vsn').remove
5+ css('h1 .app-vsn').remove
6+
67 if current_url.path.start_with?('/getting-started')
78 at_css('h1').content.strip.remove(/\.\z/)
89 else
@@ -30,6 +31,8 @@ module Docs · 21 unmodified lines
3031 else
3132 if name.start_with?('Phoenix')
3233 name.split('.')[0..2].join('.')
34+ elsif name.start_with?('mix ')
35+ 'Mix Tasks'
3336 else
3437 name.split('.').first
3538 end