diff options
| author | Kamil Doległo <kamilok1965@interia.pl> | 2019-11-06 11:53:35 +0100 |
|---|---|---|
| committer | Kamil Doległo <kamilok1965@interia.pl> | 2019-11-06 11:53:58 +0100 |
| commit | 21573971ef5bd2ae37d4643d3d4dbf433cdcbbca (patch) | |
| tree | 2aaf64567872974d233dda6bb893d341ab9f96ff /core/src/main/kotlin/transformers | |
| parent | cb4209bf550eb1dbf1253d48a1be4486a30c66b3 (diff) | |
| download | dokka-21573971ef5bd2ae37d4643d3d4dbf433cdcbbca.tar.gz dokka-21573971ef5bd2ae37d4643d3d4dbf433cdcbbca.tar.bz2 dokka-21573971ef5bd2ae37d4643d3d4dbf433cdcbbca.zip | |
A E S T H E T I C S
Diffstat (limited to 'core/src/main/kotlin/transformers')
| -rw-r--r-- | core/src/main/kotlin/transformers/DefaultDocumentationToPageTransformer.kt | 21 |
1 files changed, 2 insertions, 19 deletions
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<PlatformData>): List<ContentNode> { -// 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 |
