aboutsummaryrefslogtreecommitdiff
path: root/src/Model
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-03-02 16:17:28 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-03-02 16:17:28 +0100
commitf462317925b3706a4184ba468a353e573a4877c5 (patch)
treeb89315a94973960df8caf313bb7a20a8193c86e6 /src/Model
parent31692499975f071dce028c8912d3a80ea6019aca (diff)
downloaddokka-f462317925b3706a4184ba468a353e573a4877c5.tar.gz
dokka-f462317925b3706a4184ba468a353e573a4877c5.tar.bz2
dokka-f462317925b3706a4184ba468a353e573a4877c5.zip
for functions that can be called as operators, show operator being implemented
Diffstat (limited to 'src/Model')
-rw-r--r--src/Model/Content.kt11
-rw-r--r--src/Model/DocumentationNode.kt6
2 files changed, 17 insertions, 0 deletions
diff --git a/src/Model/Content.kt b/src/Model/Content.kt
index d343c648..91a7da81 100644
--- a/src/Model/Content.kt
+++ b/src/Model/Content.kt
@@ -98,6 +98,17 @@ fun ContentBlock.keyword(value: String) = append(ContentKeyword(value))
fun ContentBlock.symbol(value: String) = append(ContentSymbol(value))
fun ContentBlock.identifier(value: String, kind: IdentifierKind = IdentifierKind.Other) = append(ContentIdentifier(value, kind))
fun ContentBlock.nbsp() = append(ContentNonBreakingSpace)
+fun ContentBlock.strong(body: ContentBlock.() -> Unit) {
+ val strong = ContentStrong()
+ strong.body()
+ append(strong)
+}
+
+fun ContentBlock.code(body: ContentBlock.() -> Unit) {
+ val code = ContentCode()
+ code.body()
+ append(code)
+}
fun ContentBlock.link(to: DocumentationNode, body: ContentBlock.() -> Unit) {
val block = ContentNodeDirectLink(to)
diff --git a/src/Model/DocumentationNode.kt b/src/Model/DocumentationNode.kt
index c9373849..663ca021 100644
--- a/src/Model/DocumentationNode.kt
+++ b/src/Model/DocumentationNode.kt
@@ -101,6 +101,12 @@ public open class DocumentationNode(val name: String,
Value
SourceUrl
+
+ /**
+ * A note which is rendered once on a page documenting a group of overloaded functions.
+ * Needs to be generated equally on all overloads.
+ */
+ OverloadGroupNote
}
}