Exemplo n.º 1
0
        private IEnumerable <Topic> allTopicsInOrder()
        {
            var topic = TopicLoader.LoadDirectory(_directory);

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

            Topic.ParseAndOrder().Wait();

            _topicByUrl.ClearAll();
            Topic.AllTopicsInOrder().Each(x => _topicByUrl[x.Url] = x);
        }
Exemplo n.º 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());
        }