Skip to content

Commit

Permalink
Fix double full parse of content when emitting all docs (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mpdreamz authored Nov 20, 2024
1 parent bfae0fe commit ac608c3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion docs/source/nested/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
title: Nested content
---

This bucket is an example of nested content. Head down the tree to see how it works.
This bucket is an example of nested content. Head down the tree to see how it works.
3 changes: 0 additions & 3 deletions src/Elastic.Markdown/DocumentationGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,7 @@ await Parallel.ForEachAsync(DocumentationSet.Files, ctx, async (file, token) =>
var item = Interlocked.Increment(ref handledItems);
var outputFile = OutputFile(file.RelativePath);
if (file is MarkdownFile markdown)
{
await markdown.ParseFullAsync(token);
await HtmlWriter.WriteAsync(outputFile, markdown, token);
}
else
{
if (outputFile.Directory is { Exists: false })
Expand Down

0 comments on commit ac608c3

Please sign in to comment.