Closed haroldiedema closed 4 months ago
Looking at https://github.com/dotnet/docfx/blob/cb7c9c82ca2bab664e22c6047e8147627ca27129/src/Docfx.Common/Git/GitUtility.cs#L20, it seems that docfx doesn't automatically infer the active git branch from its content directory, but rather from currently set environment variables.
This fix makes sure to set the DOCFX_SOURCE_BRANCH_NAME to the current branch in the iteration, so source URL's are generated properly in the output metadata.
DOCFX_SOURCE_BRANCH_NAME
Looking at https://github.com/dotnet/docfx/blob/cb7c9c82ca2bab664e22c6047e8147627ca27129/src/Docfx.Common/Git/GitUtility.cs#L20, it seems that docfx doesn't automatically infer the active git branch from its content directory, but rather from currently set environment variables.
This fix makes sure to set the
DOCFX_SOURCE_BRANCH_NAME
to the current branch in the iteration, so source URL's are generated properly in the output metadata.