Unified · Split
| @@ -4,7 +4,7 @@ module Docs · 3 unmodified lines | ||
| 4 | 4 | def call |
| 5 | 5 | # Remove links inside <h2> and add "id" attributes |
| 6 | 6 | css('h2 > a').each do |node| |
| 7 | − node.parent['id'] = node['name'].remove('user-content-') if node['name'] | |
| 7 | + node.parent['id'] = (node['id'] || node['name']).remove('user-content-') if node['id'] || node['name'] | |
| 8 | 8 | node.before(node.children).remove |
| 9 | 9 | end |
| 10 | 10 | |
| @@ -18,7 +18,7 @@ module Docs · 7 unmodified lines | ||
| 18 | 18 | |
| 19 | 19 | # Move content to the root-level |
| 20 | 20 | css('#wiki-content').each do |node| |
| 21 | − node.before(node.at_css('.markdown-body').children).remove | |
| 21 | + node.before(node.at_css('#wiki-body .markdown-body').children).remove | |
| 22 | 22 | end |
| 23 | 23 | |
| 24 | 24 | # Make headings for function definitions and add "id" attributes |
| @@ -3,7 +3,7 @@ module Docs · 2 unmodified lines | ||
| 3 | 3 | self.name = 'D3.js' |
| 4 | 4 | self.slug = 'd3' |
| 5 | 5 | self.type = 'd3' |
| 6 | − self.release = '3.5.12' | |
| 6 | + self.release = '3.5.16' | |
| 7 | 7 | self.base_url = 'https://github.com/mbostock/d3/wiki/' |
| 8 | 8 | self.root_path = 'API-Reference' |
| 9 | 9 | self.links = { |