예제 #1
0
        private IEnumerable <Topic> allTopicsInOrder()
        {
            var topic = TopicLoader.LoadDirectory(_directory);

            topic.ParseAndOrder().Wait();
            return(topic.AllTopicsInOrder().ToArray());
        }
예제 #2
0
 public IGrammar TheTopicsAre()
 {
     return(this["BuildTopic"].AsTable("The topics in this directory are")
            .After(() =>
     {
         _top = TopicLoader.LoadDirectory(_directory);
         _top.ParseAndOrder().Wait();
     }));
 }
예제 #3
0
        public void ReadTopics()
        {
            Topic = TopicLoader.LoadDirectory(_settings.Root);

            Topic.ParseAndOrder().Wait();

            _topicByUrl.ClearAll();
            Topic.AllTopicsInOrder().Each(x => _topicByUrl[x.Url] = x);
        }
예제 #4
0
        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());
        }