aboutsummaryrefslogtreecommitdiff
path: root/src/Generation/Generator.kt
blob: d7db1c524027597dc2c353b2a25347813d76c25b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package org.jetbrains.dokka

public interface Generator {
    fun buildPages(nodes: Iterable<DocumentationNode>)
    fun buildOutlines(nodes: Iterable<DocumentationNode>)
}

fun Generator.buildAll(nodes: Iterable<DocumentationNode>) {
    buildPages(nodes)
    buildOutlines(nodes)
}

fun Generator.buildPage(node: DocumentationNode): Unit = buildPages(listOf(node))

fun Generator.buildOutline(node: DocumentationNode): Unit = buildOutlines(listOf(node))

fun Generator.buildAll(node: DocumentationNode): Unit = buildAll(listOf(node))