dokka
dokka copied to clipboard
[re-issue] dokka-customFormat-example/dokkaCustomFormat not working
Describe the bug dokka-customFormat-example not wokring
I also tried what you said in the comments. https://github.com/Kotlin/dokka/issues/2584
but not working. (./gradlew dokkaHtml and ./gradlew dokkaCustomFormat)
Expected behaviour ktor-logo.png is shown. (left-top)
Screenshots
To Reproduce
- pull this repository
- cd /dokka/examples/gradle/dokka-customFormat-example
- run sh (./gradlew dokkaHtml or ./gradlew dokkaCustomFormat)
- i expect that left-top icon is ktor-logo.png. but nothing.
Installation
- Operating system: macOS
- Build tool: Gradle v6.6.0
- Dokka version: 1.7.10
i update .css
.library-name a { position: relative; --logo-width: 50px; --logo-space: 20px; margin-left: calc(var(--logo-width) + var(--logo-space)); }
.library-name a::before { content: ''; background: url("../images/ktor-logo.png") center no-repeat; background-size: contain; position: absolute; width: var(--logo-width); height: 50px; top: -18px; left: calc(-1 * var(--logo-width) - var(--logo-space)); }
it is working
Hi! Wow, it indeed is a bug. It seems like the example is outdated. Thanks for re-opening the issue.
I'll update it.