Support for Azure Repositories#1310
Conversation
|
This is great. Thank you! Is there a url to preview the Azure links working? |
|
Yes, this is great! Should also update the docs in this page: https://www.docsy.dev/docs/adding-content/repository-links/ |
No sorry, I'm using this in a non-public project. However, it looks exactly the same as the github links. |
Agreed, done. |
|
Docs LGTM, @geriom do you want to do a final check before approval? |
|
Any updates here? I would very much appreciate this change in a new version of Docsy. |
0331feb to
7fc21f7
Compare
|
Updated to the latest version of docsy. Demo can be seen (with fake links) on the netlify deploy preview. |
|
Is ths going to be merged? |
|
Hi, I tried to push this a bit further in #1941 Config would be: # Repository configuration (URLs for in-page links to opening issues and suggesting changes)
[params.repo]
# The type of forge (allowed values github, azure, gitea)
# If you enter a different type, you can add a layout/partials/repo-links-<your_type>.html
# template for rendering links.
type = "azure"
url = "https://dev.azure.com/google/docsy/_git/docsy"
# Uncomment this if your repo does not have "main" as the default branch,
# or specify a new value if you want to reference another branch in your git links
branch = "master"
# Specify a value here if your content directory is not in your repo's root directory
subdir= "userguide"
# An optional link to a related project repo. For example, the sibling repository where your product code lives.
project_url = "https://dev.azure.com/google/docsy/_git/docsy"
# If your partial layout requires additional params, you can set them here.
[params.repo.azure]
issue_area = "Docsy\\Issues" |
Taken from google#1310
Taken from google#1310
Taken from google#1310
Taken from google#1310
Not everybody has their code stored in Github, and I wanted to add support for the links on the right side to Azure as well.
This PR does that, however, I would suggest a more significant change for source repositories, something along the lines of:
[sourcecontrol]
type = github
repo =
project_repo =
[sourcecontrol.github]
[sourcecontrol.azure]
issue_area =
For now, I lack the time to add support for this, but this would be amazing actually.
The configuration in order to utilize this PR is as following:
[params]
azure_repo =
azure_project_repo =
azure_subdir =
azure_issue_area =