Unified · Split
| @@ -70,6 +70,9 @@ The `call` method must return either `doc` or `html`, depending on the type of f · 69 unmodified lines | |||
| 70 | * `root_page?` [Boolean] | 70 | * `root_page?` [Boolean] |
| 71 | Returns `true` if the current page is the root page. | 71 | Returns `true` if the current page is the root page. |
| 72 | 72 | ||
| 73 | * `initial_page?` [Boolean] | ||
| 74 | Returns `true` if the current page is the root page or its subpath is one of the scraper's `initial_paths`. | ||
| 75 | |||
| 73 | ## Core filters | 76 | ## Core filters |
| 74 | 77 | ||
| 75 | * [`ContainerFilter`](https://github.com/Thibaut/devdocs/blob/master/lib/docs/filters/core/container.rb) — changes the root node of the document (remove everything outside) | 78 | * [`ContainerFilter`](https://github.com/Thibaut/devdocs/blob/master/lib/docs/filters/core/container.rb) — changes the root node of the document (remove everything outside) |