diff --git a/src/Docfx.App/PdfBuilder.cs b/src/Docfx.App/PdfBuilder.cs index ac4440c2934..36c930f6414 100644 --- a/src/Docfx.App/PdfBuilder.cs +++ b/src/Docfx.App/PdfBuilder.cs @@ -50,19 +50,17 @@ public static Task Run(BuildJsonConfig config, string configDirectory, string? o var outputFolder = Path.GetFullPath(Path.Combine( string.IsNullOrEmpty(outputDirectory) ? Path.Combine(configDirectory, config.Output ?? "") : outputDirectory, config.Dest ?? "")); + + Logger.LogInfo($"Searching for manifest in {outputFolder}"); return CreatePdf(outputFolder); } public static async Task CreatePdf(string outputFolder) { var stopwatch = Stopwatch.StartNew(); - Logger.LogInfo($"Searching for manifest in {outputFolder}"); var pdfTocs = GetPdfTocs().ToDictionary(p => p.url, p => p.toc); if (pdfTocs.Count == 0) - { - Logger.LogWarning($"No PDF TOC's found in: {outputFolder}"); return; - } Program.Main(new[] { "install", "chromium" });