Skip to content

Commit 52d238e

Browse files
committed
Add scala3doc logo and fix link
1 parent b80924b commit 52d238e

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed
Lines changed: 1 addition & 0 deletions
Loading

scala3doc/resources/dotty_res/styles/scalastyle.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,11 @@ th {
145145
margin-left: 42px;
146146
line-height: 42px;
147147
}
148+
149+
.scala3doc_logo {
150+
width: 116px;
151+
}
152+
148153
.sideMenuPart {
149154
padding-left: 1em;
150155
}

scala3doc/src/dotty/renderers/ScalaHtmlRenderer.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,9 @@ class ScalaHtmlRenderer(ctx: DokkaContext) extends HtmlRenderer(ctx) {
303303
raw(" Back to top")
304304
)
305305
),
306-
span(cls := "pull-right")(
307-
raw("Generated by "),
308-
a(href := "https://github.com/lampepfl/scala3doc")("Scala3doc")
306+
raw("Generated by "),
307+
a(href := "https://github.com/lampepfl/dotty/tree/master/scala3doc")(
308+
img(src := resolveRoot(page, "images/scala3doc_logo.svg"), alt := "Scala3doc", cls := "scala3doc_logo")
309309
)
310310
)
311311
)

scala3doc/src/dotty/renderers/html.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ object HTML:
7676
val title = Tag("title")
7777
val body = Tag("body")
7878
val nav = Tag("nav")
79+
val img = Tag("img")
7980

8081
val cls = Attr("class")
8182
val href = Attr("href")
@@ -90,6 +91,7 @@ object HTML:
9091
val name = Attr("name")
9192
val content = Attr("content")
9293
val testId = Attr("data-test-id")
94+
val alt = Attr("alt")
9395

9496
def raw(content: String): AppliedTag = AppliedTag(content)
9597

0 commit comments

Comments
 (0)