public void PrependKey(string key) { if (IsIndex) { Key = key; if (Title == "Index") { Title = KeyWithinParent.Capitalize(); } } else { Key = key + "/" + Key; } _children.Each(x => x.PrependKey(key)); }
public void ParseFile() { Debug.WriteLine("Parsing topic file " + File.ToFullPath()); var comments = findComments(File).ToArray(); applyExplicitTitle(comments, this); applyExplicitUrlSegment(comments, this); if (UrlSegment == null) { UrlSegment = determineUrlSegmentFromFile(File, IsIndex, IsRoot); } if (Title.IsEmpty()) { Title = KeyWithinParent.Capitalize().SplitPascalCase(); } }