Unified · Split
| @@ -30,8 +30,8 @@ module Docs · 29 unmodified lines | |||
| 30 | name = node.at_css('.header').content.split.first | 30 | name = node.at_css('.header').content.split.first |
| 31 | 31 | ||
| 32 | # Underscore methods | 32 | # Underscore methods |
| 33 | if name == 'Underscore' | 33 | if name.start_with?('Underscore') |
| 34 | node.next_element.css('li').each do |li| | 34 | node.at_css('~ ul').css('li').each do |li| |
| 35 | name = [type.downcase, li.at_css('a').content.split.first].join('.') | 35 | name = [type.downcase, li.at_css('a').content.split.first].join('.') |
| 36 | id = name.parameterize | 36 | id = name.parameterize |
| 37 | li['id'] = id | 37 | li['id'] = id |
| @@ -3,7 +3,7 @@ module Docs · 2 unmodified lines | |||
| 3 | self.name = 'Backbone.js' | 3 | self.name = 'Backbone.js' |
| 4 | self.slug = 'backbone' | 4 | self.slug = 'backbone' |
| 5 | self.type = 'underscore' | 5 | self.type = 'underscore' |
| 6 | self.version = '1.2.1' | 6 | self.version = '1.2.2' |
| 7 | self.base_url = 'http://backbonejs.org' | 7 | self.base_url = 'http://backbonejs.org' |
| 8 | self.links = { | 8 | self.links = { |
| 9 | home: 'http://backbonejs.org/', | 9 | home: 'http://backbonejs.org/', |