Unified · Split
| @@ -5,7 +5,7 @@ module Docs · 4 unmodified lines | |||
| 5 | css('h1 .app-vsn').remove | 5 | css('h1 .app-vsn').remove |
| 6 | 6 | ||
| 7 | if current_url.path.start_with?('/getting-started') | 7 | if current_url.path.start_with?('/getting-started') |
| 8 | at_css('h1').content.strip.remove(/\.\z/) | 8 | (at_css('h1 > span') or at_css('h1')).content.strip.remove(/\.\z/) |
| 9 | else | 9 | else |
| 10 | name = at_css('h1').content.strip | 10 | name = at_css('h1').content.strip |
| 11 | name = name.split(' ').first unless name.start_with?('mix ') # ecto | 11 | name = name.split(' ').first unless name.start_with?('mix ') # ecto |