[codegen/docs] Fix the case used in links for Node.js modules. (#5165)

This commit is contained in:
Praneet Loke 2020-08-13 17:29:56 -07:00 committed by GitHub
parent b273e1cbb1
commit 99fcd359ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -119,7 +119,7 @@ func (d DocLanguageHelper) GetModuleDocLink(pkg *schema.Package, modName string)
if modName == "" {
displayName = fmt.Sprintf("@pulumi/%s", pkg.Name)
} else {
displayName = fmt.Sprintf("@pulumi/%s/%s", pkg.Name, modName)
displayName = fmt.Sprintf("@pulumi/%s/%s", pkg.Name, strings.ToLower(modName))
}
link = d.GetDocLinkForResourceType(pkg, modName, "")
return displayName, link