Skip to content

Commit

Permalink
Fix link substitution (#1820)
Browse files Browse the repository at this point in the history
* Fix doc publishing to support basic link substitution

* Remove publishing for az_storage_blobs
  • Loading branch information
danieljurek authored Jul 8, 2021
1 parent ec4df09 commit 1aea07e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions eng/scripts/Language-Settings.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$Language = "c"
$PackageRepository = "C"
$packagePattern = "*.json"
$packagePattern = "package-info.json"
$MetadataUri = "https://raw.githubusercontent.com/Azure/azure-sdk/main/_data/releases/latest/c-packages.csv"
$BlobStorageUrl = "https://azuresdkdocs.blob.core.windows.net/%24web?restype=container&comp=list&prefix=c%2F&delimiter=%2F"

Expand Down Expand Up @@ -47,10 +47,9 @@ function Publish-c-GithubIODocs ($DocLocation, $PublicArtifactLocation)
# Those loops are left over from previous versions of this script which were
# used to publish multiple docs packages in a single invocation.
$pkgInfo = Get-Content $DocLocation/package-info.json | ConvertFrom-Json
$releaseTag = RetrieveReleaseTag "C" $PublicArtifactLocation
$releaseTag = RetrieveReleaseTag -artifactLocation $PublicArtifactLocation
Upload-Blobs -DocDir $DocLocation -PkgName 'az_core' -DocVersion $pkgInfo.version -ReleaseTag $releaseTag
Upload-Blobs -DocDir $DocLocation -PkgName 'az_iot' -DocVersion $pkgInfo.version -ReleaseTag $releaseTag
Upload-Blobs -DocDir $DocLocation -PkgName 'az_storage_blobs' -DocVersion $pkgInfo.version -ReleaseTag $releaseTag
}

function Get-c-GithubIoDocIndex() {
Expand Down

0 comments on commit 1aea07e

Please sign in to comment.