diff --git a/community-build/src/scala/dotty/communitybuild/projects.scala b/community-build/src/scala/dotty/communitybuild/projects.scala index 1c252d5165eb..de9705621a10 100644 --- a/community-build/src/scala/dotty/communitybuild/projects.scala +++ b/community-build/src/scala/dotty/communitybuild/projects.scala @@ -354,8 +354,7 @@ object projects: lazy val zio = SbtCommunityProject( project = "zio", sbtTestCommand = "testJVMDotty", - // sbtDocCommand = forceDoc("coreJVM"), - // Fails on tasty unpickling https://github.com/lampepfl/dotty/issues/10499 + sbtDocCommand = forceDoc("coreJVM"), ) lazy val munit = SbtCommunityProject( diff --git a/scala3doc/resources/dotty_res/styles/scalastyle.css b/scala3doc/resources/dotty_res/styles/scalastyle.css index 0a6bc81e8beb..0db3ec4216b6 100644 --- a/scala3doc/resources/dotty_res/styles/scalastyle.css +++ b/scala3doc/resources/dotty_res/styles/scalastyle.css @@ -462,6 +462,9 @@ footer .pull-right { } .documentableAnchor { position: absolute; + width: 24px; + height: 24px; + background: url('data:image/svg+xml;utf8, '); } .documentableBrief { diff --git a/scala3doc/src/dotty/renderers/ScalaHtmlRenderer.scala b/scala3doc/src/dotty/renderers/ScalaHtmlRenderer.scala index bd48d774d012..b2512e6ad11d 100644 --- a/scala3doc/src/dotty/renderers/ScalaHtmlRenderer.scala +++ b/scala3doc/src/dotty/renderers/ScalaHtmlRenderer.scala @@ -32,7 +32,7 @@ class SignatureRenderer(pageContext: ContentPage, sourceSetRestriciton: JSet[Dis def renderLink(name: String, dri: DRI, modifiers: AppliedAttr*) = link(dri) match case Some(link) => a(href := link, modifiers)(name) - case _ => span(Attr("data-unresolved-link") := dri.toString, modifiers)(name) + case _ => span(Attr("data-unresolved-link") := "", modifiers)(name) def renderElementWith(e: String | (String, DRI) | Link, modifiers: AppliedAttr*) = e match case (name, dri) => renderLink(name, dri, modifiers:_*) @@ -107,13 +107,6 @@ class ScalaHtmlRenderer(using ctx: DokkaContext) extends HtmlRenderer(ctx) { } } - private val anchor = raw(""" - - - - - """) - private def buildDocumentableList(n: DocumentableList, pageContext: ContentPage, sourceSetRestriciton: JSet[DisplaySourceSet]) = @@ -130,7 +123,7 @@ class ScalaHtmlRenderer(using ctx: DokkaContext) extends HtmlRenderer(ctx) { div(topLevelAttr:_*)( div(cls := "annotations monospace")(element.annotations.map(renderElement)), div( - a(href:=link(element.params.dri).getOrElse("#"), cls := "documentableAnchor")(anchor), + a(href:=link(element.params.dri).getOrElse("#"), cls := "documentableAnchor"), span(cls := "modifiers monospace")( span(cls := "other-modifiers")(otherModifiers.map(renderElement)), span(cls := "kind")(kind.map(renderElement)),