See #696.
Unified · Split
| @@ -57,7 +57,7 @@ module Docs · 56 unmodified lines | ||
| 57 | 57 | end |
| 58 | 58 | |
| 59 | 59 | def include_h2? |
| 60 | − return slug.start_with?('reference') || slug.start_with?('tutorial') || slug.start_with?('using') | |
| 60 | + return slug.start_with?('library') || slug.start_with?('reference') || slug.start_with?('tutorial') || slug.start_with?('using') | |
| 61 | 61 | end |
| 62 | 62 | |
| 63 | 63 | def include_default_entry? |
| @@ -81,6 +81,7 @@ module Docs · 17 unmodified lines | ||
| 81 | 81 | if include_h2? |
| 82 | 82 | css('section[id] > h2').each do |node| |
| 83 | 83 | name = node.content.remove("\u{00b6}") |
| 84 | + name.concat " (#{self.name})" if slug.start_with?('library') | |
| 84 | 85 | entries << [name, node.parent['id']] |
| 85 | 86 | end |
| 86 | 87 | end |