Showing the changes to lib (1 of 1 file). Show all
Unified · Split
| @@ -2,7 +2,8 @@ module Docs · 1 unmodified line | |||
| 2 | class Elixir | 2 | class Elixir |
| 3 | class EntriesFilter < Docs::EntriesFilter | 3 | class EntriesFilter < Docs::EntriesFilter |
| 4 | def get_name | 4 | def get_name |
| 5 | at_css('h1 .app-vsn').remove | 5 | css('h1 .app-vsn').remove |
| 6 | |||
| 6 | if current_url.path.start_with?('/getting-started') | 7 | if current_url.path.start_with?('/getting-started') |
| 7 | at_css('h1').content.strip.remove(/\.\z/) | 8 | at_css('h1').content.strip.remove(/\.\z/) |
| 8 | else | 9 | else |
| @@ -30,6 +31,8 @@ module Docs · 21 unmodified lines | |||
| 30 | else | 31 | else |
| 31 | if name.start_with?('Phoenix') | 32 | if name.start_with?('Phoenix') |
| 32 | name.split('.')[0..2].join('.') | 33 | name.split('.')[0..2].join('.') |
| 34 | elsif name.start_with?('mix ') | ||
| 35 | 'Mix Tasks' | ||
| 33 | else | 36 | else |
| 34 | name.split('.').first | 37 | name.split('.').first |
| 35 | end | 38 | end |