public ISpecNode FindSpecNode(SpecPath path) { if (path.FullName.IsEmpty()) return this; var fullName = path.FullName; return AllNodes.FirstOrDefault(x => x.FullName == fullName); }
public HtmlDocument Spec(SpecPath path) { _document.Title = Title + ": " + path.Parts.Join("/"); var node = _specifications.FindSpecNode(path); writeNode(node); return(_document); }