diff options
Diffstat (limited to 'src/Model')
-rw-r--r-- | src/Model/Content.kt | 11 | ||||
-rw-r--r-- | src/Model/DocumentationNode.kt | 6 |
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 } } |