Skip to content

Commit b03b9a4

Browse files
authored
Merge pull request #28 from szymon-rd/dynamic-loading-fixes
fix pathToRoot attr
2 parents ff7a5e2 + 057ec7b commit b03b9a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class HtmlRenderer(rootPackage: Member, members: Map[DRI, Member])(using ctx: Do
2626
val docHead = raw(document.head().html())
2727
val docBody = raw(document.body().html())
2828

29-
val attrs: List[AppliedAttr] = page.content match
29+
val attrs: List[AppliedAttr] = (page.content match
3030
case ResolvedTemplate(loadedTemplate, _) =>
3131
val path = loadedTemplate.templateFile.file.toPath
3232
ctx.sourceLinks.repoSummary(path) match
@@ -38,7 +38,7 @@ class HtmlRenderer(rootPackage: Member, members: Map[DRI, Member])(using ctx: Do
3838
)
3939
}
4040
case _ => Nil
41-
case _ => Nil
41+
case _ => Nil)
4242
:+ (Attr("data-pathToRoot") := pathToRoot(page.link.dri))
4343

4444
html(attrs: _*)(

0 commit comments

Comments
 (0)