Unified · Split
| @@ -18,6 +18,7 @@ module Docs · 17 unmodified lines | ||
| 18 | 18 | name = at_css('h1').content.strip |
| 19 | 19 | name.remove! 'The ' |
| 20 | 20 | name.sub! %r{"(.+?)"}, '\1' |
| 21 | + name.sub! %r{"(.+?)"}, '\1' | |
| 21 | 22 | name.gsub!(/ [A-Z]/) { |str| str.downcase! } |
| 22 | 23 | name |
| 23 | 24 | end |
| @@ -27,10 +28,12 @@ module Docs · 3 unmodified lines | ||
| 27 | 28 | 'Observables' |
| 28 | 29 | elsif slug =~ /component/i |
| 29 | 30 | 'Components' |
| 30 | − elsif slug.include?('binding') && !name.end_with?('binding') | |
| 31 | − 'Binding' | |
| 32 | 31 | elsif slug.include? 'binding' |
| 33 | − 'Bindings' | |
| 32 | + if at_css('#purpose') | |
| 33 | + 'Bindings' | |
| 34 | + else | |
| 35 | + 'Binding' | |
| 36 | + end | |
| 34 | 37 | elsif slug.include? 'plugin' |
| 35 | 38 | 'Plugins' |
| 36 | 39 | else |