Tree.

WithRoots(DocumentConfig) Method

Summary

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.
Assembly
Wyam.Core.dll
Namespace
Wyam.Core.Modules.Metadata
Containing Type
Tree

Syntax

public Tree WithRoots(DocumentConfig isRoot)

Parameters

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

Return Value

Type Description
Tree The current module instance.
GitHub