From 766e942a65b5a7769fa5893022960bf3387f17a7 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Fri, 2 Feb 2024 14:03:32 -0800 Subject: [PATCH 1/2] Add domains-specific changes needed for updated Generate-DocIndex.ps1 to work --- eng/scripts/Language-Settings.ps1 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/eng/scripts/Language-Settings.ps1 b/eng/scripts/Language-Settings.ps1 index 768dbb3a8634b..5f216cace6fb3 100644 --- a/eng/scripts/Language-Settings.ps1 +++ b/eng/scripts/Language-Settings.ps1 @@ -4,7 +4,7 @@ $LanguageDisplayName = ".NET" $PackageRepository = "Nuget" $packagePattern = "*.nupkg" $MetadataUri = "https://raw.githubusercontent.com/Azure/azure-sdk/main/_data/releases/latest/dotnet-packages.csv" -$BlobStorageUrl = "https://azuresdkdocs.blob.core.windows.net/%24web?restype=container&comp=list&prefix=dotnet%2F&delimiter=%2F" +$DocsGithubStoragePrefix = 'dotnet/' $GithubUri = "https://github.com/Azure/azure-sdk-for-net" $PackageRepositoryUri = "https://www.nuget.org/packages" @@ -187,7 +187,13 @@ function Get-dotnet-GithubIoDocIndex() # Fetch out all package metadata from csv file. $metadata = Get-CSVMetadata -MetadataUri $MetadataUri # Get the artifacts name from blob storage - $artifacts = Get-BlobStorage-Artifacts -blobStorageUrl $BlobStorageUrl -blobDirectoryRegex "^dotnet/(.*)/$" -blobArtifactsReplacement '$1' + $artifacts = Get-BlobStorage-Artifacts ` + -blobDirectoryRegex "^dotnet/(.*)/$" ` + -blobArtifactsReplacement '$1' ` + -storageAccountName 'azuresdkdocs' ` + -storageContainerName '$web' ` + -storagrefix 'python/' + # Build up the artifact to service name mapping for GithubIo toc. $tocContent = Get-TocMapping -metadata $metadata -artifacts $artifacts # Generate yml/md toc files and build site. From 60e831177873cb572b492d983cf3241cb8e21242 Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Fri, 2 Feb 2024 14:10:36 -0800 Subject: [PATCH 2/2] Fix typos --- eng/scripts/Language-Settings.ps1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/eng/scripts/Language-Settings.ps1 b/eng/scripts/Language-Settings.ps1 index 5f216cace6fb3..28ed12835cfad 100644 --- a/eng/scripts/Language-Settings.ps1 +++ b/eng/scripts/Language-Settings.ps1 @@ -4,7 +4,6 @@ $LanguageDisplayName = ".NET" $PackageRepository = "Nuget" $packagePattern = "*.nupkg" $MetadataUri = "https://raw.githubusercontent.com/Azure/azure-sdk/main/_data/releases/latest/dotnet-packages.csv" -$DocsGithubStoragePrefix = 'dotnet/' $GithubUri = "https://github.com/Azure/azure-sdk-for-net" $PackageRepositoryUri = "https://www.nuget.org/packages" @@ -192,7 +191,7 @@ function Get-dotnet-GithubIoDocIndex() -blobArtifactsReplacement '$1' ` -storageAccountName 'azuresdkdocs' ` -storageContainerName '$web' ` - -storagrefix 'python/' + -storagePrefix 'dotnet/' # Build up the artifact to service name mapping for GithubIo toc. $tocContent = Get-TocMapping -metadata $metadata -artifacts $artifacts