diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-01-30 17:59:15 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-01-30 17:59:15 +0100 |
commit | bfd9ffd13ed6b6916790f5f0de5f9523db71b22e (patch) | |
tree | 214ae0ff76e8b35841947b639ce3c2022ad72fec /src/Model/DocumentationNode.kt | |
parent | b55b258574a01a02f906f5f12646ecacfc640e20 (diff) | |
download | dokka-bfd9ffd13ed6b6916790f5f0de5f9523db71b22e.tar.gz dokka-bfd9ffd13ed6b6916790f5f0de5f9523db71b22e.tar.bz2 dokka-bfd9ffd13ed6b6916790f5f0de5f9523db71b22e.zip |
load sections from KDoc PSI, not through Markdown extensions
Diffstat (limited to 'src/Model/DocumentationNode.kt')
-rw-r--r-- | src/Model/DocumentationNode.kt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Model/DocumentationNode.kt b/src/Model/DocumentationNode.kt index a666b486..3a61b8fb 100644 --- a/src/Model/DocumentationNode.kt +++ b/src/Model/DocumentationNode.kt @@ -8,13 +8,11 @@ public open class DocumentationNode(val name: String, private val references = LinkedHashSet<DocumentationReference>() + public val summary: ContentNode get() { - val contentSection = content.sections["\$summary"] + val contentSection = content.summary if (contentSection != null) return contentSection - val ownerSection = owner?.content?.sections?.get(name) - if (ownerSection != null) - return ownerSection return ContentNode.empty } |