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

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

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

    final fun buildPage(node: DocumentationNode): Unit = buildPages(listOf(node))
    final fun buildOutline(node: DocumentationNode): Unit = buildOutlines(listOf(node))
    final fun buildAll(node: DocumentationNode): Unit = buildAll(listOf(node))
}