WithRoots(Config<bool>) Method
Specifies for each document if it is a root of a tree. This results in splitting the generated tree into multiple smaller ones, removing the root node from the set of children of it's parent and setting it's parent to null.
Namespace
Statiq.Core
Containing Type
CreateTree

Syntax

public CreateTree WithRoots(Config<bool> isRoot)

Parameters

Name Type Description
isRoot Config<bool> A predicate (must return bool) that specifies if the current document is treated as the root of a new tree.

Return Value

Type Description
CreateTree The current module instance.