Kotlin / dokka

API documentation engine for Kotlin
https://kotl.in/dokka
Apache License 2.0
3.45k stars 410 forks source link

Custom search icon #3882

Open MGaetan89 opened 1 month ago

MGaetan89 commented 1 month ago

Is your feature request related to a problem? Please describe

Dokka allows customizing its icons using the customAssets configuration option: https://kotlinlang.org/docs/dokka-html.html#customize-assets However, the search icon used in the top bar is not listed: https://github.com/Kotlin/dokka/tree/1.9.20/dokka-subprojects/plugin-base/src/main/resources/dokka/images

Screenshot 2024-10-24 at 11 27 44

The first icon is theme-toggle.svg, but the second is not listed.

Describe the solution you'd like

The search icon can be customized using customAssets.from("search-icon.svg") (using Dokka 2.0 syntax).

Describe alternatives you've considered

None.

Additional context

I'm using Dokka 2.0.0-Beta, but this is probably relevant for Dokka 1.9 too.