Skip to content

Commit

Permalink
Added missing pluginApiPreviewAcknowledgement for hide-internal-api
Browse files Browse the repository at this point in the history
… sample project (#3671)
  • Loading branch information
jisungbin authored Jul 5, 2024
1 parent df58e19 commit 02db40b
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@ import org.jetbrains.dokka.model.Documentable
import org.jetbrains.dokka.model.properties.WithExtraProperties
import org.jetbrains.dokka.plugability.DokkaContext
import org.jetbrains.dokka.plugability.DokkaPlugin
import org.jetbrains.dokka.plugability.DokkaPluginApiPreview
import org.jetbrains.dokka.plugability.PluginApiPreviewAcknowledgement

class HideInternalApiPlugin : DokkaPlugin() {
val myFilterExtension by extending {
plugin<DokkaBase>().preMergeDocumentableTransformer providing ::HideInternalApiTransformer
}

@DokkaPluginApiPreview
override fun pluginApiPreviewAcknowledgement() = PluginApiPreviewAcknowledgement
}

class HideInternalApiTransformer(context: DokkaContext) : SuppressedByConditionDocumentableFilterTransformer(context) {
Expand Down

0 comments on commit 02db40b

Please sign in to comment.