aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin
diff options
context:
space:
mode:
authorFilip Zybała <fzybala@virtuslab.com>2020-04-02 12:54:19 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-04-06 14:23:54 +0200
commit69b8591126833cf1437611972c7407702a1c986a (patch)
treef23f92230747ddb27bcc08a812383678a7ba8e9b /plugins/base/src/main/kotlin
parent2b921897aa90216d78e05165d5ce122814ead74c (diff)
downloaddokka-69b8591126833cf1437611972c7407702a1c986a.tar.gz
dokka-69b8591126833cf1437611972c7407702a1c986a.tar.bz2
dokka-69b8591126833cf1437611972c7407702a1c986a.zip
Modified MarkdownParser to fit new See structure. Fixed minor errors in tests.
Diffstat (limited to 'plugins/base/src/main/kotlin')
-rw-r--r--plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt4
-rw-r--r--plugins/base/src/main/kotlin/translators/psi/JavadocParser.kt2
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
index e8cdb2cf..67284b22 100644
--- a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
+++ b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
@@ -16,7 +16,7 @@ import kotlin.reflect.full.isSubclassOf
private typealias GroupedTags = Map<KClass<out TagWrapper>, List<Pair<PlatformData?, TagWrapper>>>
private val specialTags: Set<KClass<out TagWrapper>> =
- setOf(Property::class, Description::class, Constructor::class, Receiver::class, Param::class)
+ setOf(Property::class, Description::class, Constructor::class, Receiver::class, Param::class, See::class)
open class DefaultPageCreator(
@@ -253,7 +253,7 @@ open class DefaultPageCreator(
platforms.flatMap { platform ->
seeAlsoTags.mapNotNull { (_, see) ->
see.getOrExpect(platform)?.let {
- buildGroup {
+ buildGroup(platformData = setOf(platform)) {
if (it.address != null) link(it.name, it.address!!)
else text(it.name)
comment(it.root)
diff --git a/plugins/base/src/main/kotlin/translators/psi/JavadocParser.kt b/plugins/base/src/main/kotlin/translators/psi/JavadocParser.kt
index 0e446e51..2698fd0a 100644
--- a/plugins/base/src/main/kotlin/translators/psi/JavadocParser.kt
+++ b/plugins/base/src/main/kotlin/translators/psi/JavadocParser.kt
@@ -35,7 +35,7 @@ class JavadocParser(
"throws" -> Throws(P(convertJavadocElements(tag.dataElements.toList())), tag.text)
"return" -> Return(P(convertJavadocElements(tag.dataElements.toList())))
"author" -> Author(P(convertJavadocElements(tag.dataElements.toList())))
- "see" -> See(P(getSeeTagElementContent(tag)), tag.referenceElement()?.text.orEmpty())
+ "see" -> See(P(getSeeTagElementContent(tag)), tag.referenceElement()?.text.orEmpty(), null)
"deprecated" -> Deprecated(P(convertJavadocElements(tag.dataElements.toList())))
else -> null
}