public void Setup()
        {
            GeneralTree<IDirectoryTreeNode> features = Kernel.Get<DirectoryTreeCrawler>().Crawl(ROOT_PATH);

            var formatter = new HtmlTableOfContentsFormatter();
            _toc = formatter.Format(features.ChildNodes[0].Data.OriginalLocationUrl, features,
                                    new DirectoryInfo(ROOT_PATH));
        }
Example #2
0
 public HtmlDocumentFormatter(Configuration configuration, HtmlHeaderFormatter htmlHeaderFormatter, HtmlTableOfContentsFormatter htmlTableOfContentsFormatter, HtmlContentFormatter htmlContentFormatter, HtmlFooterFormatter htmlFooterFormatter, HtmlResourceSet htmlResources)
 {
     this.configuration = configuration;
     this.htmlHeaderFormatter = htmlHeaderFormatter;
     this.htmlTableOfContentsFormatter = htmlTableOfContentsFormatter;
     this.htmlContentFormatter = htmlContentFormatter;
     this.htmlFooterFormatter = htmlFooterFormatter;
     this.htmlResources = htmlResources;
 }
 public HtmlDocumentFormatter(Configuration configuration, HtmlHeaderFormatter htmlHeaderFormatter,
                              HtmlTableOfContentsFormatter htmlTableOfContentsFormatter,
                              HtmlContentFormatter htmlContentFormatter, HtmlFooterFormatter htmlFooterFormatter,
                              HtmlResourceSet htmlResources)
 {
     this.configuration                = configuration;
     this.htmlHeaderFormatter          = htmlHeaderFormatter;
     this.htmlTableOfContentsFormatter = htmlTableOfContentsFormatter;
     this.htmlContentFormatter         = htmlContentFormatter;
     this.htmlFooterFormatter          = htmlFooterFormatter;
     this.htmlResources                = htmlResources;
 }