-
Notifications
You must be signed in to change notification settings - Fork 866
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
Point "Improve this Doc" button to default branch #482
Comments
You can add newFileRepostiry property to globalMetadata in docfx.json: "globalMetadata": {
"newFileRepository": {
"branch": "yourBranch"
}
},
|
So that seems to work in the API documentation part but not in the general documentation part. Both the "Improve this Doc" button in the general documentation and the "View Source" button in the API documentation point to the branch I'm building on. The "Improve this Doc" button in the API documentation points to the branch I specified in the docfx.json file. My doxfx.json file looks like this:
Did I get my configuration incorrect? |
Got your ideas. Your |
What do you mean with 'creating a new file on GitHub'? |
"Improve this Doc" links to the conceptual file of the current document. If not found, it will link to a "New File" URL on GitHub.
|
@pvandervelde implemented in dev branch. Now you can use the _gitContribute to switch the branch for all the "globalMetadata": {
"_gitContribute": {
"repo": "repoURL",
"branch": "branchName",
"path": "overwriteFilePath"
}
}, In your case, you need to set |
Sweet. I'll wait for the next release but that's exactly what I wanted. |
@superyyrrzz Question on this ... We have the same problem for the new Blazor docs repo (docs at: http://blazor.net). We're working on I understand everything but one thing ..... What do we need for the "globalMetadata": {
"newFileRepository": {
"branch": "master"
},
"_gitContribute": {
"repo": "https://github.com/aspnet/Blazor.Docs",
"branch": "master",
"path": "overwriteFilePath"
}
} [EDIT] I found this at https://github.com/dotnet/docfx/blob/2a787812343d8198bb4928213ea120c7f8b00bf5/Documentation/tutorial/docfx.exe_user_manual.md ...
It looks like you changed "globalMetadata": {
"newFileRepository": {
"branch": "master"
},
"_gitContribute": {
"branch": "master"
}
} |
@guardrex |
Is it possible to point the "Improve this Doc" button to a default branch?
I'm using GitFlow for as the workflow for my repository and on top of that builds are never done on master, just on the final commit on the release or hotfix branch. This means that the "Improve this Doc" button in any documentation build that this time also points to the release or hotfix branch. However this branch is only temporary.
So I would like to point the button to the develop branch. Is there a way to do this in the configuration?
The text was updated successfully, but these errors were encountered: