static Option <string> GetDirectoryReadme(IContentProvider provider, ContentPath path) { var candidates = new[] { "Readme.md", "Index.md" }; var markdown = candidates .Select(_ => GetText(provider, path.CatDir(_))) .FirstOrNone(); return(markdown); }
static ContentPath GetChildPath(ContentPath p, FileSystemInfo c) { return(p.CatDir(c.Name)); }