Showing the changes to lib/docs/filters/codeception (2 of 4 files). Show all
Unified · Split
| @@ -4,6 +4,12 @@ module Docs · 3 unmodified lines | ||
| 4 | 4 | def call |
| 5 | 5 | @doc = doc.at_css('#page') |
| 6 | 6 | |
| 7 | + css('.algolia__search-content').remove | |
| 8 | + | |
| 9 | + css('.algolia__initial-content').each do |node| | |
| 10 | + node.before(node.children).remove | |
| 11 | + end | |
| 12 | + | |
| 7 | 13 | while doc.element_children.length == 1 |
| 8 | 14 | doc.first_element_child.before(doc.first_element_child.children).remove |
| 9 | 15 | end |
| @@ -2,7 +2,7 @@ module Docs · 1 unmodified line | ||
| 2 | 2 | class Codeception |
| 3 | 3 | class EntriesFilter < Docs::EntriesFilter |
| 4 | 4 | def get_name |
| 5 | − name = (at_css('h1') || at_css('h2')).content | |
| 5 | + name = (at_css('.js-algolia__initial-content h1') || at_css('.js-algolia__initial-content h2')).content | |
| 6 | 6 | |
| 7 | 7 | if number = subpath[/\A\d+/] |
| 8 | 8 | name.prepend "#{number.to_i}. " |