Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Add branch to docfx to let it generate proper source URLs #26

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

haroldiedema
Copy link
Contributor

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.

@goaaats goaaats merged commit 0137433 into goatcorp:main Apr 17, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants