Skip to content

Commit

Permalink
Domain-specific changes to fix docindex (#41765)
Browse files Browse the repository at this point in the history
* Add domains-specific changes needed for updated Generate-DocIndex.ps1 to work

* Fix typos
  • Loading branch information
danieljurek authored Feb 6, 2024
1 parent 37f2513 commit c8416d0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions eng/scripts/Language-Settings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
$BlobStorageUrl = "https://azuresdkdocs.blob.core.windows.net/%24web?restype=container&comp=list&prefix=dotnet%2F&delimiter=%2F"
$GithubUri = "https://github.com/Azure/azure-sdk-for-net"
$PackageRepositoryUri = "https://www.nuget.org/packages"

Expand Down Expand Up @@ -187,7 +186,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' `
-storagePrefix 'dotnet/'

# 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.
Expand Down

0 comments on commit c8416d0

Please sign in to comment.