-
Notifications
You must be signed in to change notification settings - Fork 865
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
[Bug] DocFx generates incorrect links in "View Source" when building from a tag in Azure DevOps git repo #10161
Comments
This might be similar to my issue. This checkouts from 2 repositories https://github.com/stride3d/stride-docs/blob/staging/.github/workflows/stride-docs-staging-azure.yml
The documentation manual, tutorials.. honor the settings from the "_gitContribute": {
"repo": "https://github.com/stride3d/stride-docs",
"branch": "master"
} But when I want to see the source code for the API, for example here https://stride-doc-staging.azurewebsites.net/latest/en/api/Stride.CompilationMode.html The View Source links takes you to
The branch shouldn't be The GitHub Action (link above) has this:
It seems like that the current branch Tested on version 2.77.0. |
Source URLs are generated by following files. But currently it seems
I though It might be resolved by clearing this environment variable.
It seems currently |
Thanks @filzrev, I will give it a go regarding |
Our builds are usually from a git tag in Azure DevOps, and in this case, the "View Source" button in DocFx is not working.
The link would work if we built from a branch, but not from a tag.
Example of generated link:
https://dev.azure.com/organizationName/projectname/_git/RepoName?path=Src/path/subpath/file.cs&version=GB7.104.0&line=8
7.104.0 is the name of our git tag.
Correct link would end with
GT7.104.0
notGB7.104.0
asGB
works only for branches, not tags.To Reproduce
Steps to reproduce the behavior:
docfx
on a git tag version of Azure DevOps repo.Expected behavior
The link should end with
GT{tag name}
instead ofGB{tag name}
for builds from a git tag.Context:
The text was updated successfully, but these errors were encountered: