Skip to content

Commit a7085f1

Browse files
committed
Fix broken breadcrumbs
1 parent d0d951c commit a7085f1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scala3doc/src/dotty/dokka/site/StaticSiteLocationProvider.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ class StaticSiteLocationProvider(pageNode: RootPageNode)(using ctx: DokkaContext
104104
dri.anchor.fold(path)(hash => s"$path#$hash")
105105
}
106106

107+
override def resolve(node: PageNode, from: PageNode, skipExtension: Boolean): String =
108+
pathTo(node, from) match
109+
case "" => ""
110+
case path => if skipExtension then path else s"$path.html"
111+
107112
override def pathTo(node: PageNode, context: PageNode): String =
108113
if node == context then ""
109114
else

0 commit comments

Comments
 (0)