From 21573971ef5bd2ae37d4643d3d4dbf433cdcbbca Mon Sep 17 00:00:00 2001 From: Kamil Doległo Date: Wed, 6 Nov 2019 11:53:35 +0100 Subject: A E S T H E T I C S --- .../DefaultDocumentationToPageTransformer.kt | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) (limited to 'core/src/main/kotlin/transformers') diff --git a/core/src/main/kotlin/transformers/DefaultDocumentationToPageTransformer.kt b/core/src/main/kotlin/transformers/DefaultDocumentationToPageTransformer.kt index 5db50e35..5e351d95 100644 --- a/core/src/main/kotlin/transformers/DefaultDocumentationToPageTransformer.kt +++ b/core/src/main/kotlin/transformers/DefaultDocumentationToPageTransformer.kt @@ -180,7 +180,7 @@ class DefaultDocumentationToPageTransformer( } private fun ContentBuilder.type(t: KotlinType) { - t.constructor.declarationDescriptor?.also { link(it.fqNameSafe.asString(), DRI.from(it)) } + t.constructor.declarationDescriptor?.also { link(it.fqNameSafe.pathSegments().last().asString(), DRI.from(it)) } ?: run { logger.error("type $t cannot be resolved") text("???") @@ -189,21 +189,4 @@ class DefaultDocumentationToPageTransformer( type(it.type) } } -} - -fun DocumentationNode<*>.identifier(platformData: List): List { -// when(this) { -// is Class -> ContentText(this.descriptor.toString(), platforms), ContentText("(") this.properties.map { ContentText(it.descriptor.visibility + " " + it.descriptor.name + ":" + ),} -// is Function -> -// is Property -> -// else -> return emptyList() -// } - TODO() -} -// take this ^ from old dokka -/* -pages are equal if the content and the children are equal -we then can merge the content by merging the platforms -and take an arbitrary set of the children -but we need to recursively process all of the children anyway - */ \ No newline at end of file +} \ No newline at end of file -- cgit