Fixed the problem of no display name issue (#1476)
Co-authored-by: Sima Zhu <sizhu@microsoft.com>
This commit is contained in:
parent
ccccd115f8
commit
153a6dd8b8
@ -165,7 +165,7 @@ function UpdateDocIndexFiles {
|
||||
$docfxContent = Get-Content -Path $DocfxJsonPath -Raw
|
||||
$docfxContent = $docfxContent -replace "`"_appTitle`": `"`"", "`"_appTitle`": `"Azure SDK for $appTitleLang`""
|
||||
$docfxContent = $docfxContent -replace "`"_appFooter`": `"`"", "`"_appFooter`": `"Azure SDK for $appTitleLang`""
|
||||
Set-Content -Path $DocfxJsonPath -Value $docfxContent
|
||||
Set-Content -Path $DocfxJsonPath -Value $docfxContent -NoNewline
|
||||
# Update main.js var lang
|
||||
$mainJsContent = Get-Content -Path $MainJsPath -Raw
|
||||
$mainJsContent = $mainJsContent -replace "var SELECTED_LANGUAGE = ''", "var SELECTED_LANGUAGE = '$lang'"
|
||||
|
||||
@ -70,9 +70,3 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -162,8 +162,12 @@ function populateIndexList(selector, packageName) {
|
||||
httpGetLatestAsync(latestPreviewUrl, latestVersions, packageName)
|
||||
var publishedVersions = $('<ul style="display: none;"></ul>')
|
||||
var collapsible = $('<div class="versionarrow"> Other versions</div>')
|
||||
|
||||
$(selector).next().after(latestVersions)
|
||||
// Check whether it has display name tag.
|
||||
if ($(selector).next().is('h5')) {
|
||||
$(selector).next().after(latestVersions)
|
||||
} else {
|
||||
$(selector).after(latestVersions)
|
||||
}
|
||||
$(latestVersions).after(collapsible)
|
||||
$(collapsible).after(publishedVersions)
|
||||
// Add collapsible arrows on versioned docs.
|
||||
@ -216,8 +220,3 @@ $(function () {
|
||||
populateOptions($('#navbar'), pkgName)
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user