I can't seem to get @sample to work, for example: ...
# dokka
i
I can't seem to get @sample to work, for example: https://dokka.kweb.io/kweb-core/kweb.config/-kweb-configuration/favicon-ico.html, generated by this code: https://github.com/kwebio/kweb-core/blob/c3d5e1018faa4afdd3a39b07f36f48b371b9ef4d/src/main/kotlin/kweb/config/KwebConfiguration.kt#L85 As can be seen, it just names the sample function rather than including the code. Anyone have any ideas what the problem might be?
m
Did you add them to your dokka configuration?
i
I think so, but I'm not sure of the correct syntax for build.gradle (ie. Groovy rather than Kotlin), are you aware of any good examples?
m
I think your path is incorrect. You passed
src/main/kotlin/samples.kt
and this path does not exists on current master. The syntax is correct so if you would like to use sample from
Element.bind
you need to add:
Copy code
dokkaHtml {
    dokkaSourceSets {
        configureEach {
            samples.from(files("src/main/kotlin/kweb/prelude.kt"))
        }
    }
}
Same thing goes for all other samples