Remove support for version'ed msdoc links (#6105)

* Remove support for version'ed msdoc links

* Remove version from msdocs link check

* Remove msdocs template for c

* Update c-packages.csv
This commit is contained in:
Wes Haggard 2023-05-11 15:22:39 -07:00 коммит произвёл GitHub
Родитель 35a366f104
Коммит b0d98423f0
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
4 изменённых файлов: 3 добавлений и 4 удалений

Просмотреть файл

@ -1,5 +1,5 @@
"Package","VersionGA","VersionPreview","DisplayName","ServiceName","RepoPath","MSDocs","GHDocs","Type","New","PlannedVersions","LatestGADate","FirstGADate","Support","EOLDate","Hide","Replace","ReplaceGuide","MSDocService","ServiceId","Notes"
"az_core","1.5.0","","Core","Other","src/azure/core","","","client","true","","01/11/2023","09/22/2020","active","","","","","","",""
"az_core","1.5.0","","Core","Other","src/azure/core","NA","","client","true","","01/11/2023","09/22/2020","active","","","","","","",""
"az_iot_hub","1.5.0","","IoT Hub","IoT Hub","src/azure/iot","NA","https://azuresdkdocs.blob.core.windows.net/$web/c/az_iot/item.Version/index.html","client","true","","01/11/2023","09/22/2020","active","","","","","","",""
"az_iot_adu","1.5.0","","IoT Hub - Device Update","Device Update for IoT Hub","src/azure/iot","NA","https://azuresdkdocs.blob.core.windows.net/$web/c/az_iot/item.Version/index.html","client","true","","01/11/2023","09/22/2020","active","","","","","","",""
"az_iot_provisioning","1.5.0","","IoT Provisioning","IoT Device Provisioning","src/azure/iot","NA","https://azuresdkdocs.blob.core.windows.net/$web/c/az_iot/item.Version/index.html","client","true","","01/11/2023","09/22/2020","active","","","","","","",""

1 Package VersionGA VersionPreview DisplayName ServiceName RepoPath MSDocs GHDocs Type New PlannedVersions LatestGADate FirstGADate Support EOLDate Hide Replace ReplaceGuide MSDocService ServiceId Notes
2 az_core 1.5.0 Core Other src/azure/core NA client true 01/11/2023 09/22/2020 active
3 az_iot_hub 1.5.0 IoT Hub IoT Hub src/azure/iot NA https://azuresdkdocs.blob.core.windows.net/$web/c/az_iot/item.Version/index.html client true 01/11/2023 09/22/2020 active
4 az_iot_adu 1.5.0 IoT Hub - Device Update Device Update for IoT Hub src/azure/iot NA https://azuresdkdocs.blob.core.windows.net/$web/c/az_iot/item.Version/index.html client true 01/11/2023 09/22/2020 active
5 az_iot_provisioning 1.5.0 IoT Provisioning IoT Device Provisioning src/azure/iot NA https://azuresdkdocs.blob.core.windows.net/$web/c/az_iot/item.Version/index.html client true 01/11/2023 09/22/2020 active

Просмотреть файл

@ -29,7 +29,6 @@
{% assign msdocs_url = msdocs_url | append: pre_suffix %}
{% endif %}
{% endif %}
{% assign msdocs_url = msdocs_url | replace: 'item.Version', version %}
{% if code_url != "" and code_url != "NA" and msdocs_url != "" and msdocs_url != "NA" %}
 | 
{% endif %}

Просмотреть файл

@ -1,6 +1,6 @@
{% assign package_label = "zip" %}
{% assign pre_suffix = "" %}
{% assign package_url_template = "https://github.com/Azure/azure-sdk-for-c/archive/item.Version.zip" %}
{% assign msdocs_url_template = "https://azuresdkdocs.blob.core.windows.net/$web/c/item.Package/item.Version/index.html" %}
<!-- {% assign msdocs_url_template = "https://azuresdkdocs.blob.core.windows.net/$web/c/item.Package/item.Version/index.html" %} -->
{% assign ghdocs_url_template = "https://azuresdkdocs.blob.core.windows.net/$web/c/item.Package/item.Version/index.html" %}
{% assign source_url_template = "https://github.com/Azure/azure-sdk-for-c/tree/item.Version/sdk/item.RepoPath/" %}

Просмотреть файл

@ -86,7 +86,7 @@ function CheckOptionalLinks($linkTemplates, $pkg, $skipIfNA = $false)
if (!$skipIfNA -or $pkg.MSDocs -eq "")
{
$preSuffix = GetLinkTemplateValue $linkTemplates "pre_suffix"
$msdocLink = GetLinkTemplateValue $linkTemplates "msdocs_url_template" $pkg.Package $pkg.VersionGA
$msdocLink = GetLinkTemplateValue $linkTemplates "msdocs_url_template" $pkg.Package
if (!$pkg.VersionGA -and $pkg.VersionPreview -and $preSuffix) {
$msdocLink += $preSuffix