private IEnumerable <Topic> allTopicsInOrder() { var topic = TopicLoader.LoadDirectory(_directory); topic.ParseAndOrder().Wait(); return(topic.AllTopicsInOrder().ToArray()); }
public IGrammar TheTopicsAre() { return(this["BuildTopic"].AsTable("The topics in this directory are") .After(() => { _top = TopicLoader.LoadDirectory(_directory); _top.ParseAndOrder().Wait(); })); }
public void ReadTopics() { Topic = TopicLoader.LoadDirectory(_settings.Root); Topic.ParseAndOrder().Wait(); _topicByUrl.ClearAll(); Topic.AllTopicsInOrder().Each(x => _topicByUrl[x.Url] = x); }
private IEnumerable <Topic> theLoadedTopics() { var directory = Context.Service <DocSettings>().Root; var top = new OutlineReader(_outlineFile).ReadFile(); OutlineWriter.WriteToFiles(directory, top); var readTop = TopicLoader.LoadDirectory(directory); readTop.ParseAndOrder().Wait(); return(readTop.AllTopicsInOrder()); }