public void PublishEntryFor11ty_Test(string entryRoot, string presentationRoot, string fileName) { entryRoot = ProgramAssemblyUtility.GetPathFromAssembly(this.GetType().Assembly, entryRoot); presentationRoot = ProgramAssemblyUtility.GetPathFromAssembly(this.GetType().Assembly, presentationRoot); var path = MarkdownEntryUtility.PublishEntryFor11ty(entryRoot, presentationRoot, fileName); Assert.True(File.Exists(path)); }
/// <summary> /// Wrapper for <see cref="MarkdownEntryUtility.PublishEntryFor11ty(string, string, string)"/>. /// </summary> /// <param name="entryDraftsRootInfo">The entry drafts root information.</param> /// <param name="entryRootInfo">The entry root information.</param> /// <param name="entryFileName">Name of the entry file.</param> public static void PublishEntry(DirectoryInfo entryDraftsRootInfo, DirectoryInfo entryRootInfo, string entryFileName) { var path = MarkdownEntryUtility.PublishEntryFor11ty(entryDraftsRootInfo.FullName, entryRootInfo.FullName, entryFileName); traceSource?.WriteLine($"{nameof(MarkdownEntryActivity)}: Published entry: {path}"); }