Skip to content

Commit 80a272e

Browse files
committed
Add a condition if to summon or not the warning.
Change spelling of noLinkWarning Correct test Correction and add condition for noLinkWarning Correction Correction Correction
1 parent aa079a5 commit 80a272e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scaladoc/src/dotty/tools/scaladoc/renderers/SiteRenderer.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ trait SiteRenderer(using DocContext) extends Locations:
5858
.orElse(asStaticSite)
5959
.orElse(asAsset)
6060
.getOrElse {
61-
report.warn(s"Unable to resolve link '$str'", content.template.templateFile.file)
61+
if (!summon[DocContext].args.noLinkWarnings){
62+
val msg = s"Unable to resolve link '$str'"
63+
report.warn(msg, content.template.templateFile.file)
64+
}
6265
str
6366
}
6467

0 commit comments

Comments
 (0)