Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 static ContentPath GetChildPath(ContentPath p, FileSystemInfo c)
 {
     return(p.CatDir(c.Name));
 }