aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/DokkaBase.kt
diff options
context:
space:
mode:
authorAndrzej Ratajczak <andrzej.ratajczak98@gmail.com>2020-04-03 13:57:33 +0200
committerKamil Doległo <kamilok1965@users.noreply.github.com>2020-04-15 14:33:24 +0200
commitfee86d79a3aa7357c68c2f8f519d187f43447e8c (patch)
tree7ba7ef24bf7733e7778f0a5344756ed39c364a3a /plugins/base/src/main/kotlin/DokkaBase.kt
parent64e600b126ae8edcfbb3c2716febb01d221520b5 (diff)
downloaddokka-fee86d79a3aa7357c68c2f8f519d187f43447e8c.tar.gz
dokka-fee86d79a3aa7357c68c2f8f519d187f43447e8c.tar.bz2
dokka-fee86d79a3aa7357c68c2f8f519d187f43447e8c.zip
Refactor package list to be a preprocessor
Diffstat (limited to 'plugins/base/src/main/kotlin/DokkaBase.kt')
-rw-r--r--plugins/base/src/main/kotlin/DokkaBase.kt14
1 files changed, 11 insertions, 3 deletions
diff --git a/plugins/base/src/main/kotlin/DokkaBase.kt b/plugins/base/src/main/kotlin/DokkaBase.kt
index e8614507..5a86780b 100644
--- a/plugins/base/src/main/kotlin/DokkaBase.kt
+++ b/plugins/base/src/main/kotlin/DokkaBase.kt
@@ -1,10 +1,8 @@
package org.jetbrains.dokka.base
import org.jetbrains.dokka.CoreExtensions
-import org.jetbrains.dokka.base.renderers.FileWriter
-import org.jetbrains.dokka.base.renderers.OutputWriter
+import org.jetbrains.dokka.base.renderers.*
import org.jetbrains.dokka.base.renderers.html.*
-import org.jetbrains.dokka.base.renderers.html.HtmlRenderer
import org.jetbrains.dokka.base.signatures.KotlinSignatureProvider
import org.jetbrains.dokka.base.signatures.SignatureProvider
import org.jetbrains.dokka.base.resolvers.external.*
@@ -154,4 +152,14 @@ class DokkaBase : DokkaPlugin() {
val styleAndScriptsAppender by extending {
htmlPreprocessors with StyleAndScriptsAppender order { after(rootCreator) }
}
+
+ val packageListCreator by extending {
+ htmlPreprocessors providing {
+ PackageListCreator(
+ it,
+ "html",
+ "html"
+ )
+ } order { after(rootCreator) }
+ }
} \ No newline at end of file