dokka icon indicating copy to clipboard operation
dokka copied to clipboard

[re-issue] dokka-customFormat-example/dokkaCustomFormat not working

Open kjt0429 opened this issue 1 year ago • 2 comments

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 screenshot

To Reproduce

  1. pull this repository
  2. cd /dokka/examples/gradle/dokka-customFormat-example
  3. run sh (./gradlew dokkaHtml or ./gradlew dokkaCustomFormat)
  4. 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

kjt0429 avatar Aug 04 '22 05:08 kjt0429

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

kjt0429 avatar Aug 04 '22 06:08 kjt0429

Hi! Wow, it indeed is a bug. It seems like the example is outdated. Thanks for re-opening the issue.

I'll update it.

IgnatBeresnev avatar Aug 04 '22 12:08 IgnatBeresnev