diff options
| author | Zubakov <aleks.zubakov@gmail.com> | 2018-09-06 19:44:50 +0300 |
|---|---|---|
| committer | Zubakov <aleks.zubakov@gmail.com> | 2018-09-06 19:45:16 +0300 |
| commit | 0df19264ccae3d294946caf634ee15eea0c4fe4a (patch) | |
| tree | aac5889906f49f68c39e1416ea39d4d19bad008e /core/src/main/kotlin/Model | |
| parent | e7917d0ca9aee41bbe0cc321ebdb171ee49a8337 (diff) | |
| download | dokka-0df19264ccae3d294946caf634ee15eea0c4fe4a.tar.gz dokka-0df19264ccae3d294946caf634ee15eea0c4fe4a.tar.bz2 dokka-0df19264ccae3d294946caf634ee15eea0c4fe4a.zip | |
Minor refactoring, kotlin-website format change: add platforms to summary signatures, platform evaluating logic change
Diffstat (limited to 'core/src/main/kotlin/Model')
| -rw-r--r-- | core/src/main/kotlin/Model/DocumentationNode.kt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/src/main/kotlin/Model/DocumentationNode.kt b/core/src/main/kotlin/Model/DocumentationNode.kt index 146c1e99..f2b3a937 100644 --- a/core/src/main/kotlin/Model/DocumentationNode.kt +++ b/core/src/main/kotlin/Model/DocumentationNode.kt @@ -76,7 +76,11 @@ open class DocumentationNode(val name: String, var content: Content = content private set - val summary: ContentNode get() = content.summary + val summary: ContentNode get() = when (kind) { + NodeKind.GroupNode -> this.origins.first().summary + else -> content.summary + } + val owner: DocumentationNode? get() = references(RefKind.Owner).singleOrNull()?.to |
