Skip to content

Commit 4559aa4

Browse files
committed
always render toc
1 parent f49cb04 commit 4559aa4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -303,14 +303,14 @@ class HtmlRenderer(rootPackage: Member, members: Map[DRI, Member])(using ctx: Do
303303
parentsHtml,
304304
div(id := "content", cls := "body-medium")(
305305
div(content),
306-
renderTableOfContents(toc).fold(Nil) { toc =>
307-
div(id := "toc", cls:="body-small")(
308-
div(id := "toc-container") (
309-
span(cls := "toc-title h200")("In this article"),
310-
toc
311-
),
312-
)
313-
},
306+
div(id := "toc", cls:="body-small")(
307+
renderTableOfContents(toc).fold(Nil) { toc =>
308+
div(id := "toc-container")(
309+
span(cls := "toc-title h200")("In this article"),
310+
toc,
311+
)
312+
},
313+
),
314314
),
315315
div(id := "footer", cls := "body-small mobile-footer")(
316316
div(cls := "left-container")(

0 commit comments

Comments
 (0)