From f462317925b3706a4184ba468a353e573a4877c5 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Mon, 2 Mar 2015 16:17:28 +0100 Subject: for functions that can be called as operators, show operator being implemented --- src/Model/Content.kt | 11 +++++++++++ src/Model/DocumentationNode.kt | 6 ++++++ 2 files changed, 17 insertions(+) (limited to 'src/Model') 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 } } -- cgit