aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mathjax/src/main/kotlin/MathjaxPlugin.kt2
-rw-r--r--plugins/xml/src/main/kotlin/XmlPlugin.kt8
2 files changed, 5 insertions, 5 deletions
diff --git a/plugins/mathjax/src/main/kotlin/MathjaxPlugin.kt b/plugins/mathjax/src/main/kotlin/MathjaxPlugin.kt
index 0c8bd654..ff3e83a3 100644
--- a/plugins/mathjax/src/main/kotlin/MathjaxPlugin.kt
+++ b/plugins/mathjax/src/main/kotlin/MathjaxPlugin.kt
@@ -28,7 +28,7 @@ object MathjaxTransformer : PageNodeTransformer {
private val PageNode.isNeedingMathjax
- get() = documentationNode?.platformInfo
+ get() = documentable?.platformInfo
?.flatMap { it.docTag?.children?.toList().orEmpty() }
.orEmpty()
.any { it.text == ANNOTATION }
diff --git a/plugins/xml/src/main/kotlin/XmlPlugin.kt b/plugins/xml/src/main/kotlin/XmlPlugin.kt
index 64d52b82..961a6387 100644
--- a/plugins/xml/src/main/kotlin/XmlPlugin.kt
+++ b/plugins/xml/src/main/kotlin/XmlPlugin.kt
@@ -1,7 +1,7 @@
package org.jetbrains.dokka.xml
import org.jetbrains.dokka.CoreExtensions
-import org.jetbrains.dokka.model.DocumentationNode
+import org.jetbrains.dokka.model.Documentable
import org.jetbrains.dokka.model.dfs
import org.jetbrains.dokka.pages.*
import org.jetbrains.dokka.plugability.DokkaContext
@@ -26,12 +26,12 @@ object XmlTransformer : PageNodeTransformer {
if (node !is ClassPageNode) node
else {
val refs =
- node.documentationNode?.extra?.filterIsInstance<XMLMega>()?.filter { it.key == "@attr ref" }
+ node.documentable?.extra?.filterIsInstance<XMLMega>()?.filter { it.key == "@attr ref" }
.orEmpty()
- val elementsToAdd = mutableListOf<DocumentationNode>()
+ val elementsToAdd = mutableListOf<Documentable>()
refs.forEach { ref ->
- input.documentationNode?.dfs { it.dri == ref.dri }?.let { elementsToAdd.add(it) }
+ input.documentable?.dfs { it.dri == ref.dri }?.let { elementsToAdd.add(it) }
}
val platformData = node.platforms().toSet()
val refTable = DefaultPageContentBuilder.group(