Skip to content

Commit bb4db4b

Browse files
authored
Fix rootFolder if --path is not defined (#360)
This way it will also find the docset.yml file if it's in the root
1 parent 9e7b896 commit bb4db4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Elastic.Markdown/BuildContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public BuildContext(IFileSystem readFileSystem, IFileSystem writeFileSystem, str
4848

4949
var rootFolder = !string.IsNullOrWhiteSpace(source)
5050
? ReadFileSystem.DirectoryInfo.New(source)
51-
: ReadFileSystem.DirectoryInfo.New(Path.Combine(Paths.Root.FullName, "docs"));
51+
: ReadFileSystem.DirectoryInfo.New(Path.Combine(Paths.Root.FullName));
5252
SourcePath = FindDocsFolderFromRoot(rootFolder);
5353

5454
OutputPath = !string.IsNullOrWhiteSpace(output)

0 commit comments

Comments
 (0)