From cdbcac4b43df372b5641b4268175c77de81c359c Mon Sep 17 00:00:00 2001 From: James Suplizio Date: Fri, 13 Dec 2019 14:39:15 -0800 Subject: [PATCH 1/2] skip management indexing for the moment --- eng/pipelines/docindex.yml | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/eng/pipelines/docindex.yml b/eng/pipelines/docindex.yml index b2b4666058949..7f07b1771f87c 100644 --- a/eng/pipelines/docindex.yml +++ b/eng/pipelines/docindex.yml @@ -143,7 +143,8 @@ jobs: } } # Only create this if there's something to create - if (($clientArr.Count -gt 0) -or ($mgmtArr.Count -gt 0)) + #if (($clientArr.Count -gt 0) -or ($mgmtArr.Count -gt 0)) + if ($clientArr.Count -gt 0) { New-Item -Path $YmlPath -Name "$($Dir.Name).md" -Force Add-Content -Path "$($YmlPath)/toc.yml" -Value "- name: $($mappedDir)`r`n href: $($Dir.Name).md" @@ -157,15 +158,22 @@ jobs: Add-Content -Path "$($YmlPath)/$($Dir.Name).md" -Value "#### $lib" } } - if ($mgmtArr.Count -gt 0) - { - Add-Content -Path "$($YmlPath)/$($Dir.Name).md" -Value "# Management Libraries" - foreach($lib in $mgmtArr) - { - Write-Output "Write $($lib) to $($Dir.Name).md" - Add-Content -Path "$($YmlPath)/$($Dir.Name).md" -Value "#### $lib" - } - } + # For the moment there are no management docs and with the way some of the libraries + # in management are versioned is a bit wonky. They aren't versioned by releasing a new + # version with the same groupId/artifactId, they're versioned with the same artifactId + # and version with a different groupId which happens to include the date. For example + # the artifact/version of azure-mgmt-storage:1.0.0-beta has several different groupIds + # com.microsoft.azure.storage.v2016_01_01, com.microsoft.azure.storage.v2017_10_01, + # com.microsoft.azure.storage.v2018_11_01 etc. + #if ($mgmtArr.Count -gt 0) + #{ + # Add-Content -Path "$($YmlPath)/$($Dir.Name).md" -Value "# Management Libraries" + # foreach($lib in $mgmtArr) + # { + # Write-Output "Write $($lib) to $($Dir.Name).md" + # Add-Content -Path "$($YmlPath)/$($Dir.Name).md" -Value "#### $lib" + # } + #} } } From c91926068a272470f7ac4e4bba0411cb6f71f059 Mon Sep 17 00:00:00 2001 From: James Suplizio Date: Mon, 16 Dec 2019 10:31:14 -0800 Subject: [PATCH 2/2] skip indexing management for the moment --- eng/pipelines/docindex.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eng/pipelines/docindex.yml b/eng/pipelines/docindex.yml index 7f07b1771f87c..d9f5ecfc64654 100644 --- a/eng/pipelines/docindex.yml +++ b/eng/pipelines/docindex.yml @@ -161,9 +161,9 @@ jobs: # For the moment there are no management docs and with the way some of the libraries # in management are versioned is a bit wonky. They aren't versioned by releasing a new # version with the same groupId/artifactId, they're versioned with the same artifactId - # and version with a different groupId which happens to include the date. For example - # the artifact/version of azure-mgmt-storage:1.0.0-beta has several different groupIds - # com.microsoft.azure.storage.v2016_01_01, com.microsoft.azure.storage.v2017_10_01, + # and version with a different groupId and the groupId happens to include the date. For + # example, the artifact/version of azure-mgmt-storage:1.0.0-beta has several different + # groupIds. com.microsoft.azure.storage.v2016_01_01, com.microsoft.azure.storage.v2017_10_01, # com.microsoft.azure.storage.v2018_11_01 etc. #if ($mgmtArr.Count -gt 0) #{