Esempio n. 1
0
 public ApiDocumentRenderer(ContentPreformatter preformatter,
                            MarkdownFormatter markdown,
                            TableOfContentsOrganizer tocOrganizer,
                            ApiTocRenderer tocRenderer,
                            ReferenceMap referenceMap,
                            OutputPath outputPath,
                            ILogger <ApiDocumentRenderer> logger)
 {
     _markdown     = markdown;
     _preformatter = preformatter;
     _tocOrganizer = tocOrganizer;
     _tocRenderer  = tocRenderer;
     _referenceMap = referenceMap;
     _outputPath   = outputPath;
     _logger       = logger;
 }
Esempio n. 2
0
        public ArticleRenderer(BuilderSettings settings,
                               MarkdownFormatter markdown,
                               ContentPreformatter preformatter,
                               OutputPath outputPath,
                               ILogger <ArticleRenderer> logger)
        {
            _sourcePath   = Path.Combine(settings.RootPath, "articles");
            _markdown     = markdown;
            _preformatter = preformatter;
            _outputPath   = outputPath;
            _logger       = logger;

            if (!Directory.Exists(_sourcePath))
            {
                throw new DirectoryNotFoundException($"Unable to find article root directory '{_sourcePath}'");
            }
        }
Esempio n. 3
0
 public ApiTocRenderer(MarkdownFormatter markdown, ILogger <ApiTocRenderer> logger)
 {
     _markdown = markdown;
     _logger   = logger;
 }