Unified · Split
| @@ -27,19 +27,6 @@ module Docs · 26 unmodified lines | ||
| 27 | 27 | |
| 28 | 28 | string.sub(canary_copy, ' (Canary)') |
| 29 | 29 | end |
| 30 | − | |
| 31 | − def additional_entries | |
| 32 | − excluded = %w(usage troubleshooting recap reference challenges alternatives) | |
| 33 | − entries = [] | |
| 34 | − css('article h2, article h3').map do |node| | |
| 35 | − next unless node.has_attribute?('id') | |
| 36 | − name = node.content.strip | |
| 37 | − next if excluded.include?(name.downcase) | |
| 38 | − entries << [name, node['id'], type] | |
| 39 | − end | |
| 40 | − | |
| 41 | − entries | |
| 42 | − end | |
| 43 | 30 | end |
| 44 | 31 | end |
| 45 | 32 | end |