Skip to content

Commit

Permalink
Remove mathjax custom tag content provider to be contributed separately
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnatBeresnev committed Feb 17, 2022
1 parent 189301a commit 0ef0fb6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
8 changes: 0 additions & 8 deletions plugins/mathjax/api/mathjax.api
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
public final class org/jetbrains/dokka/mathjax/MathjaxPlugin : org/jetbrains/dokka/plugability/DokkaPlugin {
public fun <init> ()V
public final fun getMathjaxTagContentProvider ()Lorg/jetbrains/dokka/plugability/Extension;
public final fun getTransformer ()Lorg/jetbrains/dokka/plugability/Extension;
}

public final class org/jetbrains/dokka/mathjax/MathjaxTagContentProvider : org/jetbrains/dokka/base/transformers/pages/tags/CustomTagContentProvider {
public static final field INSTANCE Lorg/jetbrains/dokka/mathjax/MathjaxTagContentProvider;
public fun contentForBrief (Lorg/jetbrains/dokka/base/translators/documentables/PageContentBuilder$DocumentableContentBuilder;Lorg/jetbrains/dokka/DokkaConfiguration$DokkaSourceSet;Lorg/jetbrains/dokka/model/doc/CustomTagWrapper;)V
public fun contentForDescription (Lorg/jetbrains/dokka/base/translators/documentables/PageContentBuilder$DocumentableContentBuilder;Lorg/jetbrains/dokka/DokkaConfiguration$DokkaSourceSet;Lorg/jetbrains/dokka/model/doc/CustomTagWrapper;)V
public fun isApplicable (Lorg/jetbrains/dokka/model/doc/CustomTagWrapper;)Z
}

public final class org/jetbrains/dokka/mathjax/MathjaxTransformer : org/jetbrains/dokka/transformers/pages/PageTransformer {
public static final field INSTANCE Lorg/jetbrains/dokka/mathjax/MathjaxTransformer;
public fun invoke (Lorg/jetbrains/dokka/pages/RootPageNode;)Lorg/jetbrains/dokka/pages/RootPageNode;
Expand Down
18 changes: 0 additions & 18 deletions plugins/mathjax/src/main/kotlin/MathjaxPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ class MathjaxPlugin : DokkaPlugin() {
val transformer by extending {
CoreExtensions.pageTransformer with MathjaxTransformer
}

val mathjaxTagContentProvider by extending {
plugin<DokkaBase>().customTagContentProvider with MathjaxTagContentProvider order {
before(plugin<DokkaBase>().sinceKotlinTagContentProvider)
}
}
}

private const val ANNOTATION = "usesMathJax"
Expand All @@ -40,15 +34,3 @@ object MathjaxTransformer : PageTransformer {
.orEmpty()
.any { (it as? CustomTagWrapper)?.name == ANNOTATION }
}

object MathjaxTagContentProvider : CustomTagContentProvider {

override fun isApplicable(customTag: CustomTagWrapper) = customTag.name == ANNOTATION

override fun DocumentableContentBuilder.contentForDescription(
sourceSet: DokkaConfiguration.DokkaSourceSet,
customTag: CustomTagWrapper
) {
comment(customTag.root, sourceSets = setOf(sourceSet))
}
}

0 comments on commit 0ef0fb6

Please sign in to comment.