From afdac2145020762a153c5460c33e9103679dcafe Mon Sep 17 00:00:00 2001 From: Vitalii Mikhailov Date: Sun, 7 Jan 2024 18:29:03 +0200 Subject: [PATCH] Updated DocFX --- .../DocFx.Plugin.LastModified.csproj | 8 ++++---- .../DocFx.Plugin.LastModified/Helpers/RepositoryHelper.cs | 2 +- .../LastModifiedPostProcessor.cs | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/build/DocFx.Plugin.LastModified/DocFx.Plugin.LastModified.csproj b/build/DocFx.Plugin.LastModified/DocFx.Plugin.LastModified.csproj index d7ee0e8..051557c 100644 --- a/build/DocFx.Plugin.LastModified/DocFx.Plugin.LastModified.csproj +++ b/build/DocFx.Plugin.LastModified/DocFx.Plugin.LastModified.csproj @@ -18,11 +18,11 @@ - - + + + + - - diff --git a/build/DocFx.Plugin.LastModified/Helpers/RepositoryHelper.cs b/build/DocFx.Plugin.LastModified/Helpers/RepositoryHelper.cs index c4d3aee..05168f7 100644 --- a/build/DocFx.Plugin.LastModified/Helpers/RepositoryHelper.cs +++ b/build/DocFx.Plugin.LastModified/Helpers/RepositoryHelper.cs @@ -1,8 +1,8 @@ using System; using System.IO; using System.Linq; +using Docfx.Common; using LibGit2Sharp; -using Microsoft.DocAsCode.Common; namespace DocFx.Plugin.LastModified.Helpers { diff --git a/build/DocFx.Plugin.LastModified/LastModifiedPostProcessor.cs b/build/DocFx.Plugin.LastModified/LastModifiedPostProcessor.cs index 86ff9e9..af6d05c 100644 --- a/build/DocFx.Plugin.LastModified/LastModifiedPostProcessor.cs +++ b/build/DocFx.Plugin.LastModified/LastModifiedPostProcessor.cs @@ -5,11 +5,11 @@ using System.IO; using System.Linq; using System.Reflection; using System.Text; +using Docfx.Common; using DocFx.Plugin.LastModified.Helpers; +using Docfx.Plugins; using HtmlAgilityPack; using LibGit2Sharp; -using Microsoft.DocAsCode.Common; -using Microsoft.DocAsCode.Plugins; namespace DocFx.Plugin.LastModified { @@ -38,8 +38,8 @@ namespace DocFx.Plugin.LastModified var gitDirectory = Repository.Discover(manifest.SourceBasePath); if (gitDirectory != null) _repo = new Repository(gitDirectory); - foreach (var manifestItem in manifest.Files.Where(x => x.DocumentType == "Conceptual")) - foreach (var manifestItemOutputFile in manifestItem.OutputFiles) + foreach (var manifestItem in manifest.Files.Where(x => x.Type == "Conceptual")) + foreach (var manifestItemOutputFile in manifestItem.Output) { var sourcePath = Path.Combine(manifest.SourceBasePath, manifestItem.SourceRelativePath); var outputPath = Path.Combine(outputFolder, manifestItemOutputFile.Value.RelativePath);