You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Filter-Reference.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,9 @@ The `call` method must return either `doc` or `html`, depending on the type of f
70
70
* `root_page?` [Boolean]
71
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
76
## Core filters
74
77
75
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)
0 commit comments