Skip to content

Commit

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

This bucket is an example of nested content. Head down the tree to see how it works.

Hello [](content/nest-cafe2.md)


```{hint}
asdjasd
```
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 2da645f

Please sign in to comment.