Skip to content

Commit fe902ea

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 7694985 commit fe902ea

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
@@ -63,7 +63,10 @@ trait SiteRenderer(using DocContext) extends Locations:
6363
.orElse(asStaticSite)
6464
.orElse(asAsset)
6565
.getOrElse {
66-
report.warn(s"Unable to resolve link '$str'", content.template.templateFile.file)
66+
if (!summon[DocContext].args.noLinkWarnings){
67+
val msg = s"Unable to resolve link '$str'"
68+
report.warn(msg, content.template.templateFile.file)
69+
}
6770
str
6871
}
6972

0 commit comments

Comments
 (0)