private IEnumerable<DocumentFile> LoadDocuments()
{
if (Directory.Exists(this.DocumentsPath))
{
foreach (var path in Directory.GetFiles(this.DocumentsPath, "*", SearchOption.AllDirectories))
{
if (this.IgnoreFiles != null && this.IgnoreFile(path))
{
continue;
}
yield return this.LoadDocument(path, this.RenderedExtensions, this.Layouts);
}
}
}