From 6fbed190535d46d212a57362586ac10e0e02f410 Mon Sep 17 00:00:00 2001 From: Jan Calanog Date: Tue, 28 Jan 2025 15:38:47 +0100 Subject: [PATCH] Fix rootFolder if `--path` is not defined This way it will also find the docset.yml file if it's in the root --- src/Elastic.Markdown/BuildContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Elastic.Markdown/BuildContext.cs b/src/Elastic.Markdown/BuildContext.cs index 7c23577a..40911dfd 100644 --- a/src/Elastic.Markdown/BuildContext.cs +++ b/src/Elastic.Markdown/BuildContext.cs @@ -48,7 +48,7 @@ public BuildContext(IFileSystem readFileSystem, IFileSystem writeFileSystem, str var rootFolder = !string.IsNullOrWhiteSpace(source) ? ReadFileSystem.DirectoryInfo.New(source) - : ReadFileSystem.DirectoryInfo.New(Path.Combine(Paths.Root.FullName, "docs")); + : ReadFileSystem.DirectoryInfo.New(Path.Combine(Paths.Root.FullName)); SourcePath = FindDocsFolderFromRoot(rootFolder); OutputPath = !string.IsNullOrWhiteSpace(output)