Unified · Split
| @@ -11,8 +11,6 @@ module Docs · 10 unmodified lines | |||
| 11 | name = at_css('h1').content | 11 | name = at_css('h1').content |
| 12 | 12 | ||
| 13 | if slug.start_with?('getting-started') | 13 | if slug.start_with?('getting-started') |
| 14 | name.remove! /\d - / | ||
| 15 | |||
| 16 | active_link = at_css('main .active') | 14 | active_link = at_css('main .active') |
| 17 | links = active_link.parent.children.to_a | 15 | links = active_link.parent.children.to_a |
| 18 | name.prepend "#{links.index(active_link) + 1}. " | 16 | name.prepend "#{links.index(active_link) + 1}. " |