Skip to content

Commit

Permalink
fixes #109
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Siebenhofer authored and Doraku committed Jun 12, 2022
1 parent 84afa18 commit 571e99b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions source/DefaultDocumentation.Common/Generator.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
Expand Down Expand Up @@ -115,13 +115,16 @@ void AddSetting<TSetting, TConfig>(Expression<Func<IRawSettings, TSetting>> prop

_context = new GeneralContext(
_configuration,
new[] { typeof(Markdown.Writers.MarkdownWriter).Assembly.Location }
.Concat(GetSetting<string[]>(nameof(settings.Plugins)) ?? Enumerable.Empty<string>())
.Select(Assembly.LoadFrom)
new[] { typeof(Markdown.Writers.MarkdownWriter).Assembly }
.Concat(
(GetSetting<string[]>(nameof(settings.Plugins)) ?? Enumerable.Empty<string>())
.Select(Assembly.LoadFrom)
)
.SelectMany(a => a.GetTypes())
.ToArray(),
resolvedSettings,
DocItemReader.GetItems(resolvedSettings));

}

private void WritePage(DocItem item, StringBuilder builder)
Expand Down

0 comments on commit 571e99b

Please sign in to comment.