Skip to content

Commit

Permalink
Fix forgotten line
Browse files Browse the repository at this point in the history
  • Loading branch information
Still Hsu committed Aug 10, 2018
1 parent c9c992b commit 76709c8
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions DocFX.Plugin.DescriptionGenerator/DescriptionPostProcessor.cs
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Collections.ObjectModel;
using System.Composition;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using HtmlAgilityPack;
using Microsoft.DocAsCode.Common;
using Microsoft.DocAsCode.Plugins;

namespace DocFX.Plugin.DescriptionGenerator
{
[Export(nameof(DescriptionPostProcessor), typeof(IPostProcessor))]
public partial class DescriptionPostProcessor : IPostProcessor
public class DescriptionPostProcessor : IPostProcessor
{
private const int FixedDescriptionLength = 150;
private const string FullStopDelimiter = ". ";
Expand Down Expand Up @@ -56,7 +52,7 @@ public Manifest Process(Manifest manifest, string outputFolder)
/// <param name="sourcePath">The original article path.</param>
/// <param name="outputPath">The output path.</param>
/// <param name="type">The type of document.</param>
private static void WriteMetadataTag(string sourcePath, string outputPath, ArticleType type)
private void WriteMetadataTag(string sourcePath, string outputPath, ArticleType type)
{
Logger.LogVerbose($"Processing metadata from {sourcePath} to {outputPath}...");
var htmlDoc = new HtmlDocument();
Expand All @@ -82,7 +78,10 @@ private static void WriteMetadataTag(string sourcePath, string outputPath, Artic
}

if (!string.IsNullOrEmpty(descriptionText))
{
AppendMetadata(htmlDoc, descriptionText).Save(outputPath);
_savedFiles++;
}
}

/// <summary>
Expand Down

0 comments on commit 76709c8

Please sign in to comment.