Skip to content

Commit 56910a7

Browse files
committed
ensure the default output folder is scoped to source folder if specified
1 parent 693d979 commit 56910a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Elastic.Documentation.Configuration/BuildContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public BuildContext(
8383

8484
DocumentationOutputDirectory = !string.IsNullOrWhiteSpace(output)
8585
? WriteFileSystem.DirectoryInfo.New(output)
86-
: WriteFileSystem.DirectoryInfo.New(Path.Combine(Paths.WorkingDirectoryRoot.FullName, Path.Combine(".artifacts", "docs", "html")));
86+
: WriteFileSystem.DirectoryInfo.New(Path.Combine(rootFolder.FullName, Path.Combine(".artifacts", "docs", "html")));
8787

8888
if (ConfigurationPath.FullName != DocumentationSourceDirectory.FullName)
8989
DocumentationSourceDirectory = ConfigurationPath.Directory!;

0 commit comments

Comments
 (0)