Skip to content

Commit afc8d60

Browse files
authored
Merge pull request #118 from TheBrambleShark/Fix/OutputPath
Add fallback for if a path to a SpecSource file is defined.
2 parents dd571f9 + f44b791 commit afc8d60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DocFxOpenApi/DocFxOpenApi.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ private void RunLogic()
6767
{
6868
if (string.IsNullOrEmpty(_options.OutputFolder))
6969
{
70-
_options.OutputFolder = _options.SpecFolder;
70+
_options.OutputFolder = _options.SpecFolder ?? Path.GetDirectoryName(_options.SpecFile);
7171
}
7272

7373
_message.Verbose($"Specification file/folder: {_options.SpecFolder ?? _options.SpecFile}");

0 commit comments

Comments
 (0)