diff options
author | Andrzej Ratajczak <andrzej.ratajczak98@gmail.com> | 2020-03-31 17:23:54 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-04-08 13:21:22 +0200 |
commit | 5013037c6bc555df2544f08ce25afd0307ee2cc1 (patch) | |
tree | 509f6940f343ea45731b4b547a64cc90377fb445 /plugins/base/src/main/kotlin | |
parent | 7d04ecbfe48125dbcd5e682b2c37fc1f7341822f (diff) | |
download | dokka-5013037c6bc555df2544f08ce25afd0307ee2cc1.tar.gz dokka-5013037c6bc555df2544f08ce25afd0307ee2cc1.tar.bz2 dokka-5013037c6bc555df2544f08ce25afd0307ee2cc1.zip |
Fixes tests
Diffstat (limited to 'plugins/base/src/main/kotlin')
-rw-r--r-- | plugins/base/src/main/kotlin/transformers/pages/sourcelinks/SourceLinksTransformer.kt | 4 | ||||
-rw-r--r-- | plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt | 6 |
2 files changed, 2 insertions, 8 deletions
diff --git a/plugins/base/src/main/kotlin/transformers/pages/sourcelinks/SourceLinksTransformer.kt b/plugins/base/src/main/kotlin/transformers/pages/sourcelinks/SourceLinksTransformer.kt index 7a93f0b9..6cb35e66 100644 --- a/plugins/base/src/main/kotlin/transformers/pages/sourcelinks/SourceLinksTransformer.kt +++ b/plugins/base/src/main/kotlin/transformers/pages/sourcelinks/SourceLinksTransformer.kt @@ -20,11 +20,9 @@ import org.jetbrains.kotlin.utils.addToStdlib.safeAs class SourceLinksTransformer(val context: DokkaContext) : PageTransformer { - private lateinit var sourceLinks: List<SourceLink> - override fun invoke(input: RootPageNode): RootPageNode { - sourceLinks = context.configuration.passesConfigurations + val sourceLinks = context.configuration.passesConfigurations .flatMap { it.sourceLinks.map { sl -> SourceLink(sl, it.platformData) } } return input.transformContentPagesTree { node -> diff --git a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt index 87f47ac8..312c7a5a 100644 --- a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt +++ b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt @@ -7,9 +7,6 @@ import org.jetbrains.dokka.base.translators.documentables.PageContentBuilder.Doc import org.jetbrains.dokka.links.DRI import org.jetbrains.dokka.model.* import org.jetbrains.dokka.model.doc.* -import org.jetbrains.dokka.model.DFunction -import org.jetbrains.dokka.model.doc.Property -import org.jetbrains.dokka.model.doc.TagWrapper import org.jetbrains.dokka.model.properties.WithExtraProperties import org.jetbrains.dokka.pages.* import org.jetbrains.dokka.utilities.DokkaLogger @@ -78,9 +75,8 @@ open class DefaultPageCreator( protected open fun contentForPackage(p: DPackage) = contentBuilder.contentFor(p) { group(p.dri, p.platformData.toSet(), ContentKind.Packages) { header(1) { text("Package ${p.name}") } - +contentForComments(p) } - header(1) { text("Package ${p.name}") } + +contentForComments(p) +contentForScope(p, p.dri, p.platformData) block("Type aliases", 2, ContentKind.TypeAliases, p.typealiases, p.platformData.toSet()) { link(it.name, it.dri) |