Skip to content

Commit 1a11cfd

Browse files
Merge branch 'scaladoc-fixes' into ux-fixes
2 parents 87803db + 98bead0 commit 1a11cfd

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

docs/_assets/images/no-results-icon.svg

Lines changed: 0 additions & 6 deletions
This file was deleted.

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ trait Resources(using ctx: DocContext) extends Locations, Writer:
3232

3333
private def scaladocVersionFile = Resource.Text("scaladoc.version", BuildInfo.version)
3434

35-
lazy val noResultsIcon = {
36-
val path = Paths.get("docs/_assets/images/no-results-icon.svg")
37-
Resource.File("icons/no-results.svg", path)
38-
}
39-
4035
lazy val projectLogo = ctx.args.projectLogo.map { p =>
4136
val path = Paths.get(p)
4237
Resource.File(s"project-logo/${path.getFileName()}", path)
@@ -138,7 +133,7 @@ trait Resources(using ctx: DocContext) extends Locations, Writer:
138133
"https://scastie.scala-lang.org/embedded.js"
139134
).map(Resource.URL.apply)
140135

141-
fromResources ++ urls ++ projectLogo ++ darkProjectLogo ++ Seq(noResultsIcon, scaladocVersionFile, dynamicJsData)
136+
fromResources ++ urls ++ projectLogo ++ darkProjectLogo ++ Seq(scaladocVersionFile, dynamicJsData)
142137
}
143138

144139
val apiOnlyResources = List(
@@ -274,6 +269,7 @@ trait Resources(using ctx: DocContext) extends Locations, Writer:
274269
dottyRes("images/class.svg"),
275270
dottyRes("images/class_comp.svg"),
276271
dottyRes("images/class-dark.svg"),
272+
dottyRes("images/no-results-icon.svg"),
277273
dottyRes("images/object.svg"),
278274
dottyRes("images/object_comp.svg"),
279275
dottyRes("images/object-dark.svg"),

0 commit comments

Comments
 (0)