Пример #1
0
        public static TopicToken LoadIndex(string directory)
        {
            var root  = TopicLoader.LoadFromFolder(directory);
            var token = new TopicToken(root.Index);

            token.Key = "index";

            return(token);
        }
Пример #2
0
        public void smoke_test_can_load_project_root_from_folder_outside_of_fubumvc_app()
        {
            var folder =
                ".".ToFullPath().ParentDirectory().ParentDirectory().ParentDirectory().AppendPath("FubuDocs.Docs");

            var project = TopicLoader.LoadFromFolder(folder);

            project.ShouldNotBeNull();
            project.AllTopics().Count().ShouldBeGreaterThan(5);

            project.AllTopics().Each(x => {
                Debug.WriteLine(x);
            });
        }