is there a complete example anywhere of writing a ...
# dokka
a
is there a complete example anywhere of writing a custom plugin? e.g. let's say I want to filter out API's and types that have a particular annotation on them, what's the easiest entry point to do this? What about customizing the HTML output? thanks!
I've got a skeleton created but can't seem to get it to apply to
dokkaHtmlPartial
tasks...
seems like using
dokkaPlugin(project(":custom-dokka-plugin"))
works but using either
dokkaHtmlPlugin
or
dokkaHtmlMultimodulePlugin
configurations does not. Has to be applied to all subprojects
for anyone else, I followed the example from DeprecatedDocumentableFilterTransformer (which uses the following for grabbing the annotation) Rather than implement all of that logic I inherited from
<https://github.com/Kotlin/dokka/blob/master/plugins/base/src/main/kotlin/transformers/documentables/SuppressedByConditionDocumentableFilterTransformer.kt#L15|SuppressedByConditionDocumentableFilterTransformer>
If there is an easier way let me know but this seems to work...
a
If you want to see the plugin that I’m working on for developer.android.com you can check out the code here: https://cs.android.com/androidx/platform/tools/dokka-devsite-plugin
a
thanks Andrea!