aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mathjax/src/main/kotlin/MathjaxPlugin.kt3
-rw-r--r--plugins/xml/src/main/kotlin/XmlPlugin.kt10
2 files changed, 6 insertions, 7 deletions
diff --git a/plugins/mathjax/src/main/kotlin/MathjaxPlugin.kt b/plugins/mathjax/src/main/kotlin/MathjaxPlugin.kt
index b7b2d505..0c8bd654 100644
--- a/plugins/mathjax/src/main/kotlin/MathjaxPlugin.kt
+++ b/plugins/mathjax/src/main/kotlin/MathjaxPlugin.kt
@@ -4,9 +4,8 @@ import org.jetbrains.dokka.CoreExtensions
import org.jetbrains.dokka.pages.ModulePageNode
import org.jetbrains.dokka.pages.PageNode
import org.jetbrains.dokka.plugability.DokkaContext
-import org.jetbrains.dokka.plugability.DokkaContextConfiguration
import org.jetbrains.dokka.plugability.DokkaPlugin
-import org.jetbrains.dokka.transformers.PageNodeTransformer
+import org.jetbrains.dokka.transformers.pages.PageNodeTransformer
class MathjaxPlugin : DokkaPlugin() {
val transformer by extending {
diff --git a/plugins/xml/src/main/kotlin/XmlPlugin.kt b/plugins/xml/src/main/kotlin/XmlPlugin.kt
index 9de706b2..c177218f 100644
--- a/plugins/xml/src/main/kotlin/XmlPlugin.kt
+++ b/plugins/xml/src/main/kotlin/XmlPlugin.kt
@@ -4,11 +4,12 @@ import org.jetbrains.dokka.CoreExtensions
import org.jetbrains.dokka.DokkaConsoleLogger
import org.jetbrains.dokka.Model.DocumentationNode
import org.jetbrains.dokka.Model.dfs
-import org.jetbrains.dokka.XMLMega
import org.jetbrains.dokka.pages.*
import org.jetbrains.dokka.plugability.DokkaContext
import org.jetbrains.dokka.plugability.DokkaPlugin
-import org.jetbrains.dokka.transformers.PageNodeTransformer
+import org.jetbrains.dokka.plugability.single
+import org.jetbrains.dokka.transformers.descriptors.XMLMega
+import org.jetbrains.dokka.transformers.pages.PageNodeTransformer
class XmlPlugin : DokkaPlugin() {
val transformer by extending {
@@ -38,9 +39,8 @@ object XmlTransformer : PageNodeTransformer {
node.dri,
platformData,
XMLKind.XmlList,
- //Following parameters will soon be drawn from context, so we can leave them like this for the time being
- MarkdownToContentConverter(DokkaConsoleLogger),
- DokkaConsoleLogger
+ dokkaContext.single(CoreExtensions.markdownToContentConverterFactory).invoke(dokkaContext),
+ dokkaContext.logger
) {
block("XML Attributes", 2, XMLKind.XmlList, elementsToAdd, platformData) { element ->
link(element.dri, XMLKind.XmlList) {