Skip to content

Commit

Permalink
Fix for Endpoint Samples not being rendered correctly in Docs (#2377)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrHinsh authored Sep 19, 2024
2 parents 76c49c7 + ab8aed0 commit 718c319
Show file tree
Hide file tree
Showing 12 changed files with 173 additions and 181 deletions.
1 change: 1 addition & 0 deletions MigrationTools.sln
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
.editorconfig = .editorconfig
.gitattributes = .gitattributes
.gitignore = .gitignore
appsettings.json = appsettings.json
configuration.json = configuration.json
configuration2-wit.json = configuration2-wit.json
configuration2.json = configuration2.json
Expand Down
5 changes: 0 additions & 5 deletions appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"MigrationTools": {
"EndpointDefaults": {
"TfsEndpoint": {
"EndpointType": "TfsTeamProjectEndpoint",
"Collection": "",
"Project": "",
"AllowCrossProjectLinking": false,
Expand All @@ -34,7 +33,6 @@
}
},
"TfsTeamProjectEndpoint": {
"EndpointType": "TfsTeamProjectEndpoint",
"Collection": "",
"Project": "",
"AllowCrossProjectLinking": false,
Expand All @@ -56,7 +54,6 @@
},
"EndpointSamples": {
"TfsTeamProjectEndpoint": {
"EndpointType": "TfsTeamProjectEndpoint",
"Collection": "https://dev.azure.com/nkdagility-preview/",
"Project": "migrationSource1",
"AllowCrossProjectLinking": false,
Expand All @@ -75,7 +72,6 @@
}
},
"TfsEndpoint": {
"EndpointType": "TfsTeamProjectEndpoint",
"Collection": "https://dev.azure.com/nkdagility-preview/",
"Project": "migrationSource1",
"AllowCrossProjectLinking": false,
Expand All @@ -94,7 +90,6 @@
}
},
"AzureDevOpsEndpoint": {
"EndpointType": "AzureDevOpsEndpoint",
"AuthenticationMode": "AccessToken",
"AccessToken": "jklsadhjksahfkjsdhjksahsadjhksadhsad",
"Organisation": "https://dev.azure.com/xxx/",
Expand Down
14 changes: 7 additions & 7 deletions docs/Reference/Generated/MigrationTools.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 5 additions & 7 deletions docs/_data/reference.endpoints.azuredevopsendpoint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@ configurationSamples:
"Version": "16.0",
"Endpoints": {
"#KEY#": {
"AzureDevOpsEndpoint": {
"AccessToken": "jklsadhjksahfkjsdhjksahsadjhksadhsad",
"AuthenticationMode": "AccessToken",
"EndpointType": "AzureDevOpsEndpoint",
"Organisation": "https://dev.azure.com/xxx/",
"Project": "myProject"
}
"EndpointType": "AzureDevOpsEndpoint",
"AccessToken": "jklsadhjksahfkjsdhjksahsadjhksadhsad",
"AuthenticationMode": "AccessToken",
"Organisation": "https://dev.azure.com/xxx/",
"Project": "myProject"
}
}
}
Expand Down
72 changes: 34 additions & 38 deletions docs/_data/reference.endpoints.tfsendpoint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,24 @@ configurationSamples:
"Version": "16.0",
"Endpoints": {
"#KEY#": {
"TfsEndpoint": {
"AllowCrossProjectLinking": "False",
"Authentication": {
"AccessToken": "",
"AuthenticationMode": "AccessToken",
"NetworkCredentials": {
"Domain": "",
"Password": "",
"UserName": ""
}
},
"EndpointType": "TfsEndpoint",
"AllowCrossProjectLinking": "False",
"Authentication": {
"AccessToken": "",
"AuthenticationMode": "AccessToken",
"Collection": "",
"EndpointType": "TfsTeamProjectEndpoint",
"LanguageMaps": {
"AreaPath": "Area",
"IterationPath": "Iteration"
},
"Project": ""
}
"NetworkCredentials": {
"Domain": "",
"Password": "",
"UserName": ""
}
},
"AuthenticationMode": "AccessToken",
"Collection": "",
"LanguageMaps": {
"AreaPath": "Area",
"IterationPath": "Iteration"
},
"Project": ""
}
}
}
Expand All @@ -42,25 +40,23 @@ configurationSamples:
"Version": "16.0",
"Endpoints": {
"#KEY#": {
"TfsEndpoint": {
"AllowCrossProjectLinking": "False",
"Authentication": {
"AccessToken": "jklsadhjksahfkjsdhjksahsadjhksadhsad",
"AuthenticationMode": "AccessToken",
"NetworkCredentials": {
"Domain": "",
"Password": "",
"UserName": ""
}
},
"Collection": "https://dev.azure.com/nkdagility-preview/",
"EndpointType": "TfsTeamProjectEndpoint",
"LanguageMaps": {
"AreaPath": "Area",
"IterationPath": "Iteration"
},
"Project": "migrationSource1"
}
"EndpointType": "TfsEndpoint",
"AllowCrossProjectLinking": "False",
"Authentication": {
"AccessToken": "jklsadhjksahfkjsdhjksahsadjhksadhsad",
"AuthenticationMode": "AccessToken",
"NetworkCredentials": {
"Domain": "",
"Password": "",
"UserName": ""
}
},
"Collection": "https://dev.azure.com/nkdagility-preview/",
"LanguageMaps": {
"AreaPath": "Area",
"IterationPath": "Iteration"
},
"Project": "migrationSource1"
}
}
}
Expand Down
72 changes: 34 additions & 38 deletions docs/_data/reference.endpoints.tfsteamprojectendpoint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,24 @@ configurationSamples:
"Version": "16.0",
"Endpoints": {
"#KEY#": {
"TfsTeamProjectEndpoint": {
"AllowCrossProjectLinking": "False",
"Authentication": {
"AccessToken": "",
"AuthenticationMode": "AccessToken",
"NetworkCredentials": {
"Domain": "",
"Password": "",
"UserName": ""
}
},
"EndpointType": "TfsTeamProjectEndpoint",
"AllowCrossProjectLinking": "False",
"Authentication": {
"AccessToken": "",
"AuthenticationMode": "AccessToken",
"Collection": "",
"EndpointType": "TfsTeamProjectEndpoint",
"LanguageMaps": {
"AreaPath": "Area",
"IterationPath": "Iteration"
},
"Project": ""
}
"NetworkCredentials": {
"Domain": "",
"Password": "",
"UserName": ""
}
},
"AuthenticationMode": "AccessToken",
"Collection": "",
"LanguageMaps": {
"AreaPath": "Area",
"IterationPath": "Iteration"
},
"Project": ""
}
}
}
Expand All @@ -42,25 +40,23 @@ configurationSamples:
"Version": "16.0",
"Endpoints": {
"#KEY#": {
"TfsTeamProjectEndpoint": {
"AllowCrossProjectLinking": "False",
"Authentication": {
"AccessToken": "jklsadhjksahfkjsdhjksahsadjhksadhsad",
"AuthenticationMode": "AccessToken",
"NetworkCredentials": {
"Domain": "",
"Password": "",
"UserName": ""
}
},
"Collection": "https://dev.azure.com/nkdagility-preview/",
"EndpointType": "TfsTeamProjectEndpoint",
"LanguageMaps": {
"AreaPath": "Area",
"IterationPath": "Iteration"
},
"Project": "migrationSource1"
}
"EndpointType": "TfsTeamProjectEndpoint",
"AllowCrossProjectLinking": "False",
"Authentication": {
"AccessToken": "jklsadhjksahfkjsdhjksahsadjhksadhsad",
"AuthenticationMode": "AccessToken",
"NetworkCredentials": {
"Domain": "",
"Password": "",
"UserName": ""
}
},
"Collection": "https://dev.azure.com/nkdagility-preview/",
"LanguageMaps": {
"AreaPath": "Area",
"IterationPath": "Iteration"
},
"Project": "migrationSource1"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ configurationSamples:
"Enabled": false,
"WIQLQuery": "Select [System.Id] From WorkItems Where [System.TeamProject] = @project and not [System.WorkItemType] contains 'Test Suite, Test Plan,Shared Steps,Shared Parameter,Feedback Request'",
"TargetLinksToKeepOrganization": "https://dev.azure.com/nkdagility",
"TargetLinksToKeepProject": "8e55d369-07c8-4e19-9313-fd2543544c73",
"TargetLinksToKeepProject": "cf9756e9-69e6-4c9a-b8f4-f4f620151478",
"CleanupFileName": "c:/temp/OutboundLinkTargets.bat",
"PrependCommand": "start",
"DryRun": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@ configurationSamples:
"Version": "16.0",
"Endpoints": {
"#KEY#": {
"AzureDevOpsEndpoint": {
"AccessToken": "jklsadhjksahfkjsdhjksahsadjhksadhsad",
"AuthenticationMode": "AccessToken",
"EndpointType": "AzureDevOpsEndpoint",
"Organisation": "https://dev.azure.com/xxx/",
"Project": "myProject"
}
"EndpointType": "AzureDevOpsEndpoint",
"AccessToken": "jklsadhjksahfkjsdhjksahsadjhksadhsad",
"AuthenticationMode": "AccessToken",
"Organisation": "https://dev.azure.com/xxx/",
"Project": "myProject"
}
}
}
Expand Down
Loading

0 comments on commit 718c319

Please sign in to comment.