diff options
author | Błażej Kardyś <bkardys@virtuslab.com> | 2019-11-21 02:10:26 +0100 |
---|---|---|
committer | Błażej Kardyś <bkardys@virtuslab.com> | 2019-11-25 17:17:01 +0100 |
commit | 193b8c0bcebdcdfd749090a408149cac06203614 (patch) | |
tree | 8875ec08e1ddac7a5d6c8708bd1a6a918c4380b0 /core/src/main/kotlin/pages/PageNodes.kt | |
parent | 4f59d3df7a0a3525bf3a0dab8617746a4db30f67 (diff) | |
download | dokka-193b8c0bcebdcdfd749090a408149cac06203614.tar.gz dokka-193b8c0bcebdcdfd749090a408149cac06203614.tar.bz2 dokka-193b8c0bcebdcdfd749090a408149cac06203614.zip |
Descriptor independent DocumentationNodes and seperate Page and PageContent builders
Diffstat (limited to 'core/src/main/kotlin/pages/PageNodes.kt')
-rw-r--r-- | core/src/main/kotlin/pages/PageNodes.kt | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/core/src/main/kotlin/pages/PageNodes.kt b/core/src/main/kotlin/pages/PageNodes.kt index 6c56d5fe..a07aa8c1 100644 --- a/core/src/main/kotlin/pages/PageNodes.kt +++ b/core/src/main/kotlin/pages/PageNodes.kt @@ -6,10 +6,10 @@ import org.jetbrains.dokka.links.DRI interface PageNode { val name: String - var content: ContentNode + val content: ContentNode val parent: PageNode? val dri: DRI - val documentationNode: DocumentationNode<*>? + val documentationNode: DocumentationNode? val embeddedResources: List<String> val children: List<PageNode> @@ -42,8 +42,8 @@ abstract class BasicPageNode(children: List<PageNode>) : PageNode { class ModulePageNode( override val name: String, - override var content: ContentNode, - override val documentationNode: DocumentationNode<*>?, + override val content: ContentNode, + override val documentationNode: DocumentationNode?, children: List<PageNode>, override val embeddedResources: List<String> = listOf() ) : BasicPageNode(children) { @@ -62,9 +62,9 @@ class ModulePageNode( class PackagePageNode( override val name: String, - override var content: ContentNode, + override val content: ContentNode, override val dri: DRI, - override val documentationNode: DocumentationNode<*>?, + override val documentationNode: DocumentationNode?, children: List<PageNode>, override val embeddedResources: List<String> = listOf() ) : BasicPageNode(children) { @@ -81,9 +81,9 @@ class PackagePageNode( class ClassPageNode( override val name: String, - override var content: ContentNode, + override val content: ContentNode, override val dri: DRI, - override val documentationNode: DocumentationNode<*>?, + override val documentationNode: DocumentationNode?, children: List<PageNode>, override val embeddedResources: List<String> = listOf() ) : BasicPageNode(children) { @@ -100,9 +100,9 @@ class ClassPageNode( class MemberPageNode( override val name: String, - override var content: ContentNode, + override val content: ContentNode, override val dri: DRI, - override val documentationNode: DocumentationNode<*>?, + override val documentationNode: DocumentationNode?, children: List<PageNode> = emptyList(), override val embeddedResources: List<String> = listOf() ) : BasicPageNode(children) { |